diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-10-10 14:22:38 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-10-10 14:22:38 -0500 |
commit | 0c875e1e96b77892bd3f9bd5a91959c57ab7b91c (patch) | |
tree | 1b60d151d16d2b1af5c0f1520ce41b4aad290f08 /mediagoblin/db/migrations.py | |
parent | 454a2c16bdb8849805f338f325eb5a481f1cc826 (diff) | |
download | mediagoblin-0c875e1e96b77892bd3f9bd5a91959c57ab7b91c.tar.lz mediagoblin-0c875e1e96b77892bd3f9bd5a91959c57ab7b91c.tar.xz mediagoblin-0c875e1e96b77892bd3f9bd5a91959c57ab7b91c.zip |
Renaming replace_table to replace_table_hack and documenting why it's a hack
We'd still prefer people use other solutions when possible!
This commit sponsored by Michał Masłowski. Thank you!
Diffstat (limited to 'mediagoblin/db/migrations.py')
-rw-r--r-- | mediagoblin/db/migrations.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py index 6e37e437..966817fc 100644 --- a/mediagoblin/db/migrations.py +++ b/mediagoblin/db/migrations.py @@ -27,8 +27,8 @@ from migrate.changeset.constraint import UniqueConstraint from mediagoblin.db.extratypes import JSONEncoded, MutationDict -from mediagoblin.db.migration_tools import (RegisterMigration, inspect_table, - replace_table) +from mediagoblin.db.migration_tools import ( + RegisterMigration, inspect_table, replace_table_hack) from mediagoblin.db.models import (MediaEntry, Collection, MediaComment, User, Privilege) @@ -695,7 +695,7 @@ def create_moderation_tables(db): User_vR1.__table__.create(db.bind) db.commit() new_user_table = inspect_table(metadata, 'rename__users') - replace_table(db,user_table, new_user_table) + replace_table_hack(db, user_table, new_user_table) else: # If the db is not run using SQLite, this process is much simpler ~~~~~ |