Migration not creating new fields/tables after restore from an old backup the database

27 views
Skip to first unread message

Ur. Kr.

unread,
Jul 31, 2019, 3:21:03 PM7/31/19
to web2py-users
This are my migration settings:
DAL(settings.database_uri, migrate=True, fake_migrate_all=True)

When I add new tables of fields on the development version of the app they are added properly. However, if I create a backup of the production database (missing the newly added fields/tables) and I use that backup to restore the development database the new fields are missing and they are not created after refreshing the page with the above migration settings. 

Any fields/tables added AFTER the restore DO get added! The only ones that don't are those that were added pre-restore and were lost on restore. 

Deleting the files in the databases folder doesn't help either. 
Reply all
Reply to author
Forward
0 new messages