Switch "sqlite_refcheck" keyword arg to "migrations" which Elrond thinks is cleaner
Also, if migrations is true, *explicitly* say that foreign key checking is off
This commit is contained in:
@@ -114,7 +114,7 @@ def run_dbupdate(app_config, global_config):
|
||||
global_config.get('plugins', {}).keys())
|
||||
|
||||
# Set up the database
|
||||
db = setup_connection_and_db_from_config(app_config, sqlite_refcheck=False)
|
||||
db = setup_connection_and_db_from_config(app_config, migrations=True)
|
||||
|
||||
Session = sessionmaker(bind=db.engine)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user