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/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/open.py')
-rw-r--r-- | mediagoblin/db/open.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mediagoblin/db/open.py b/mediagoblin/db/open.py index a92a6ada..32827fcb 100644 --- a/mediagoblin/db/open.py +++ b/mediagoblin/db/open.py @@ -14,4 +14,5 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from mediagoblin.db.mongo.open import setup_connection_and_db_from_config +from mediagoblin.db.mongo.open import \ + setup_connection_and_db_from_config, check_db_migrations_current |