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:
Christopher Allan Webber
2013-04-26 15:27:44 -05:00
parent 313b38f895
commit ea5fb2d9d4
2 changed files with 16 additions and 4 deletions

View File

@@ -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)