diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-11-29 17:23:28 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-12-25 20:06:03 +0100 |
commit | bc142abc5592975c08319416d0af12c108504887 (patch) | |
tree | 45d2d0339768ca78b3bef37bb9c887e932470091 /mediagoblin/db/open.py | |
parent | 351fd95fff98d389711a1aa9cc3ba5d661a9b433 (diff) | |
download | mediagoblin-bc142abc5592975c08319416d0af12c108504887.tar.lz mediagoblin-bc142abc5592975c08319416d0af12c108504887.tar.xz mediagoblin-bc142abc5592975c08319416d0af12c108504887.zip |
RIP out mongo
Since sqlalchemy is providing our database abstraction and we have
moved away from Mongo as the underlying database, it is now time to
simplify things and rip out mongo. This provides the bulk of the
changes, and can stand on its own. There are some followup tasks
that can be done, such as removing now unneeded abstraction layers,
e.g. db.sql.fake.py
Diffstat (limited to 'mediagoblin/db/open.py')
-rw-r--r-- | mediagoblin/db/open.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/mediagoblin/db/open.py b/mediagoblin/db/open.py index f4c38511..e32d8853 100644 --- a/mediagoblin/db/open.py +++ b/mediagoblin/db/open.py @@ -14,16 +14,6 @@ # 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/>. -try: - from mediagoblin.db.sql_switch import use_sql -except ImportError: - use_sql = False - -if use_sql: - from mediagoblin.db.sql.open import \ - setup_connection_and_db_from_config, check_db_migrations_current, \ - load_models -else: - from mediagoblin.db.mongo.open import \ +from mediagoblin.db.sql.open import \ setup_connection_and_db_from_config, check_db_migrations_current, \ load_models |