aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/dbupdate.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-04-26 15:27:44 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-04-26 15:27:44 -0500
commitea5fb2d9d4785b1d0afc4185da15783629831fee (patch)
treee879400719994e64332b0a8ea6dbb9bc46b7197a /mediagoblin/gmg_commands/dbupdate.py
parent313b38f895332a700984adf8156ec9b3c4150b09 (diff)
downloadmediagoblin-ea5fb2d9d4785b1d0afc4185da15783629831fee.tar.lz
mediagoblin-ea5fb2d9d4785b1d0afc4185da15783629831fee.tar.xz
mediagoblin-ea5fb2d9d4785b1d0afc4185da15783629831fee.zip
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
Diffstat (limited to 'mediagoblin/gmg_commands/dbupdate.py')
-rw-r--r--mediagoblin/gmg_commands/dbupdate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/gmg_commands/dbupdate.py b/mediagoblin/gmg_commands/dbupdate.py
index f33d83d5..32700c40 100644
--- a/mediagoblin/gmg_commands/dbupdate.py
+++ b/mediagoblin/gmg_commands/dbupdate.py
@@ -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)