diff options
| author | Barry Warsaw | 2016-09-19 07:22:57 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-09-19 07:22:57 -0400 |
| commit | 76a8fe7819b228279bc2dd4090c93e4ebae8311b (patch) | |
| tree | c57a0206f4d34b4b9485064dcf6dc208199d5aae /src/mailman/database | |
| parent | 3ba58c6fb843d91f731c34310fcb67f2273e7078 (diff) | |
| download | mailman-76a8fe7819b228279bc2dd4090c93e4ebae8311b.tar.gz mailman-76a8fe7819b228279bc2dd4090c93e4ebae8311b.tar.zst mailman-76a8fe7819b228279bc2dd4090c93e4ebae8311b.zip | |
Diffstat (limited to 'src/mailman/database')
3 files changed, 4 insertions, 7 deletions
diff --git a/src/mailman/database/alembic/versions/16c2b25c7b_list_subscription_policy.py b/src/mailman/database/alembic/versions/16c2b25c7b_list_subscription_policy.py index fef188bd0..591033ce1 100644 --- a/src/mailman/database/alembic/versions/16c2b25c7b_list_subscription_policy.py +++ b/src/mailman/database/alembic/versions/16c2b25c7b_list_subscription_policy.py @@ -25,7 +25,6 @@ def upgrade(): # SQLite may not have removed it when downgrading. op.add_column('mailinglist', sa.Column( 'subscription_policy', Enum(SubscriptionPolicy), nullable=True)) - # Now migrate the data. Don't import the table definition from the # models, it may break this migration when the model is updated in the # future (see the Alembic doc). diff --git a/src/mailman/database/alembic/versions/448a93984c35_unsubscription_workflow.py b/src/mailman/database/alembic/versions/448a93984c35_unsubscription_workflow.py index 19366c14a..106d9d5e0 100644 --- a/src/mailman/database/alembic/versions/448a93984c35_unsubscription_workflow.py +++ b/src/mailman/database/alembic/versions/448a93984c35_unsubscription_workflow.py @@ -19,11 +19,9 @@ down_revision = 'fa0d96e28631' def upgrade(): if not exists_in_db(op.get_bind(), 'mailinglist', 'unsubscription_policy'): - with op.batch_alter_table('mailinglist') as batch_op: - # SQLite may not have removed it when downgrading. - batch_op.add_column(sa.Column( - 'unsubscription_policy', Enum(SubscriptionPolicy), - nullable=True)) + # SQLite may not have removed it when downgrading. + op.add_column('mailinglist', sa.Column( + 'unsubscription_policy', Enum(SubscriptionPolicy), nullable=True)) # Now migrate the data. Don't import the table definition from the # models, it may break this migration when the model is updated in the # future (see the Alembic doc). diff --git a/src/mailman/database/alembic/versions/fa0d96e28631_template_manager.py b/src/mailman/database/alembic/versions/fa0d96e28631_template_manager.py index 58d688453..8fb8c1056 100644 --- a/src/mailman/database/alembic/versions/fa0d96e28631_template_manager.py +++ b/src/mailman/database/alembic/versions/fa0d96e28631_template_manager.py @@ -1,7 +1,7 @@ """File cache and template manager. Revision ID: fa0d96e28631 -Revises: bfda02ab3a9b +Revises: 7b254d88f122 Create Date: 2016-02-21 16:21:48.277654 """ |
