summaryrefslogtreecommitdiff
path: root/src/mailman/database/schema/mm_20121015000000.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-12-30 11:59:05 -0500
committerBarry Warsaw2012-12-30 11:59:05 -0500
commitfc662999d425e9347f59f676861ee44ad81c2623 (patch)
treea6ba8fceb36aecc6fb2b66c5b946589b188057a2 /src/mailman/database/schema/mm_20121015000000.py
parent08c8644c4bcd067f1501829a39ee9f06d116abf3 (diff)
downloadmailman-fc662999d425e9347f59f676861ee44ad81c2623.tar.gz
mailman-fc662999d425e9347f59f676861ee44ad81c2623.tar.zst
mailman-fc662999d425e9347f59f676861ee44ad81c2623.zip
Diffstat (limited to 'src/mailman/database/schema/mm_20121015000000.py')
-rw-r--r--src/mailman/database/schema/mm_20121015000000.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mailman/database/schema/mm_20121015000000.py b/src/mailman/database/schema/mm_20121015000000.py
index 7ccf93289..3e7b12555 100644
--- a/src/mailman/database/schema/mm_20121015000000.py
+++ b/src/mailman/database/schema/mm_20121015000000.py
@@ -68,9 +68,12 @@ def upgrade_sqlite(database, store, version, module_path):
UPDATE ban_backup SET list_id = '{0}'
WHERE id = {1};
""".format(_make_listid(mailing_list), id))
- # Pivot the backup table to the real thing.
+ # Pivot the bans backup table to the real thing.
store.execute('DROP TABLE ban;')
store.execute('ALTER TABLE ban_backup RENAME TO ban;')
+ # Pivot the mailinglist backup table to the real thing.
+ store.execute('DROP TABLE mailinglist;')
+ store.execute('ALTER TABLE ml_backup RENAME TO mailinglist;')
@@ -87,5 +90,6 @@ def upgrade_postgres(database, store, version, module_path):
WHERE id = {1};
""".format(_make_listid(mailing_list), id))
store.execute('ALTER TABLE ban DROP COLUMN mailing_list;')
+ store.execute('ALTER TABLE mailinglist DROP COLUMN new_member_options;')
# Record the migration in the version table.
database.load_schema(store, version, None, module_path)