Factor out check_db_migrations_current
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Sun, 1 Jan 2012 16:24:02 +0000 (17:24 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Sun, 1 Jan 2012 17:36:42 +0000 (18:36 +0100)
commit415077a743400f9d9fa476b37c5b3aff4683f942
tree625cbb6ab32c8766652da3f6588e8d5d474c34cb
parentf5d837fe4a0ad5f08b48e0cd69fddb37e81d1514
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.
mediagoblin/db/mongo/open.py
mediagoblin/db/open.py
mediagoblin/db/sql/open.py
mediagoblin/init/__init__.py