Probably you don't have *.table files indicating the current status of the database schema. First, without the new column in the code, run a request with fake_migrate_all=True, which will create an updated set of *.table files. Then add the new column, and the migration should work.
Anthony On Tuesday, April 3, 2018 at 12:14:30 PM UTC-4, Stephan wrote: > > I am getting an "tables already exist" error after adding column to an > existing table in db.py and setting migrate from false to true. It's > connected to a mysql. Application is running in version 2.8.2. Is there > some cahce to be cleared? thx > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.