diff options
| author | Barry Warsaw | 2012-08-19 18:58:55 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-08-19 18:58:55 -0400 |
| commit | 9eb9875569a716dd82ee7764ecee2f37ab446e13 (patch) | |
| tree | 3298a0e3c0c65b55535c3223ef80ed6dc1296ed4 /src/mailman/database/schema/mm_20120407000000.py | |
| parent | b301eeb71249ef58ffcc8b285d51b19c8b42812b (diff) | |
| download | mailman-9eb9875569a716dd82ee7764ecee2f37ab446e13.tar.gz mailman-9eb9875569a716dd82ee7764ecee2f37ab446e13.tar.zst mailman-9eb9875569a716dd82ee7764ecee2f37ab446e13.zip | |
Diffstat (limited to 'src/mailman/database/schema/mm_20120407000000.py')
| -rw-r--r-- | src/mailman/database/schema/mm_20120407000000.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/database/schema/mm_20120407000000.py b/src/mailman/database/schema/mm_20120407000000.py index df192b2ae..89bc52eca 100644 --- a/src/mailman/database/schema/mm_20120407000000.py +++ b/src/mailman/database/schema/mm_20120407000000.py @@ -27,6 +27,7 @@ All column changes are in the `mailinglist` table. - archive, archive_private -> archive_policy * Remove: + - generic_nonmember_action - nntp_host See https://bugs.launchpad.net/mailman/+bug/971013 for details. @@ -130,7 +131,8 @@ def upgrade_postgres(database, store, version, module_path): archive_policy(archive, archive_private), id)) # Now drop the old columns. - store.execute('ALTER TABLE mailinglist DROP COLUMN archive;') - store.execute('ALTER TABLE mailinglist DROP COLUMN archive_private;') + for column in ('archive', 'archive_private', 'generic_nonmember_action'): + store.execute( + 'ALTER TABLE mailinglist DROP COLUMN {0};'.format(column)) # Record the migration in the version table. database.load_schema(store, version, None, module_path) |
