diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-01-01 17:24:02 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-01-01 18:36:42 +0100 |
commit | 415077a743400f9d9fa476b37c5b3aff4683f942 (patch) | |
tree | 625cbb6ab32c8766652da3f6588e8d5d474c34cb /mediagoblin/db/sql/open.py | |
parent | f5d837fe4a0ad5f08b48e0cd69fddb37e81d1514 (diff) | |
download | mediagoblin-415077a743400f9d9fa476b37c5b3aff4683f942.tar.lz mediagoblin-415077a743400f9d9fa476b37c5b3aff4683f942.tar.xz mediagoblin-415077a743400f9d9fa476b37c5b3aff4683f942.zip |
Factor out check_db_migrations_current
When initializing the database connection the current mongo
based setup checked for new migrations and warned about
them. This was mongo specific so factor'd it out into a
more generic check_db_migrations_current function in the
mongo backend.
Also created a dummy one in the sql backend.
Diffstat (limited to 'mediagoblin/db/sql/open.py')
-rw-r--r-- | mediagoblin/db/sql/open.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/db/sql/open.py b/mediagoblin/db/sql/open.py index 57feaf50..c682bd3b 100644 --- a/mediagoblin/db/sql/open.py +++ b/mediagoblin/db/sql/open.py @@ -27,3 +27,7 @@ def setup_connection_and_db_from_config(app_config): Session.configure(bind=engine) return "dummy conn", DatabaseMaster(engine) + + +def check_db_migrations_current(db): + pass |