summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw2012-07-25 23:46:59 -0400
committerBarry Warsaw2012-07-25 23:46:59 -0400
commite08c2d6d9ef6c4e6d78c054cecd5829c5711617e (patch)
tree8e451420428b8b26ea1c3512423b50106a1b7b0a
parent30ecd410ba83dc32ad021a2d2c841761befe3079 (diff)
downloadmailman-e08c2d6d9ef6c4e6d78c054cecd5829c5711617e.tar.gz
mailman-e08c2d6d9ef6c4e6d78c054cecd5829c5711617e.tar.zst
mailman-e08c2d6d9ef6c4e6d78c054cecd5829c5711617e.zip
And now, working for PostgreSQL.
-rw-r--r--src/mailman/database/schema/mm_20120407000000.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mailman/database/schema/mm_20120407000000.py b/src/mailman/database/schema/mm_20120407000000.py
index 95b56c939..3e778ea8f 100644
--- a/src/mailman/database/schema/mm_20120407000000.py
+++ b/src/mailman/database/schema/mm_20120407000000.py
@@ -112,6 +112,9 @@ def upgrade_postgres(database, store, version, module_path):
store.execute(
'ALTER TABLE mailinglist '
' RENAME COLUMN news_moderation TO newsgroup_moderation;')
+ store.execute(
+ 'ALTER TABLE mailinglist '
+ ' RENAME COLUMN include_list_post_header TO allow_list_posts;')
# Do the column drop next.
store.execute('ALTER TABLE mailinglist DROP COLUMN nntp_host;')
# Now do the trickier collapsing of values. Add the new columns.