diff options
Diffstat (limited to 'src')
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 """ |
