pymysql.err.InternalError: (1054, u"Unknown column 'comment' in 'field list'")
See original GitHub issueTrying to switch to master by using this command.
bench switch-to-master
Above mentioned command get executed succesfully but getting error on firing this command:
bench update --patch
Error:
pymysql.err.InternalError: (1054, u"Unknown column 'comment' in 'field list'")
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Unknown column in 'field list' error on MySQL Update query
I got this error when using GroupBy via LINQ on a MySQL database. The problem was that the anonymous object property ...
Read more >How to fix MySQL unknown column in field list error
The MySQL unknown column in field list error happens when you put a column name in your SQL script that can't be found...
Read more >pymysql.err.InternalError: (1054, u"Unknown column ...
pymysql.err.InternalError: (1054, u"Unknown column 'department' in 'field list'") · ERPNext.
Read more >MySQL Error: 1054 Unknown column in 'field list' - Tech-Assured
If you see this error, it means you have forgotten something while creating table. Let's see the causes & fixes to it. Possible...
Read more >1927169 – DBAPIError exception wrapped from (pymysql.err ...
InternalError ) (1054, u"Unknown column 'pool.tls_certificate_id' in 'field list'"). Summary: DBAPIError exception wrapped from (pymysql.err.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am getting this when switch to master from develop, using the same database
Full error message
View
Database table ‘tabComment’:
Image
obviously `comment` and `comment_doctype` fields is missing (possibly field name changed).Solution:
go to
apps/frappe/frappe/patches.txt
(master branch of apps: frappe)change this 2 lines accordingly:
comment
to_comments
comment_doctype
toreference_doctype
(traced the code. possibly the same field)bench update --patch
worksConclusion:
Possibly caused by database changes in
develop
branch not merged intomaster
branch.Pull requests ?
Cannot confirm this is the fix. Frappe expert needed. 😀 🤙🤙🤙
@prashantkt10 Run
bench --site site1.local reinstall
after switching to master and before doing the patch