Allow easily switching fake_migrate on to allow easier fixes of the database migrations

This commit is contained in:
2019-07-25 17:15:19 +01:00
parent cb0c2e6edd
commit b4c2ee8304
4 changed files with 14 additions and 3 deletions
+6
View File
@@ -266,6 +266,12 @@ web2py will attempt to run a GUI to ask for it when starting the web server
'(default is %(default)s), see -S above. NOTE: when the APP_ENV '
'argument of -S include a controller c automatic import of '
'models is always enabled')
g.add_argument('--fake_migrate',
default=False,
action='store_true',
help=
'force DAL to fake migrate all tables; '
'monkeypatch in the DAL class to force _fake_migrate=True')
g.add_argument('--force_migrate', '--force-migrate',
default=False,
action='store_true', help=