From 3e28a57b7107543f25bdfd7a13ab72e730494e6a Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Wed, 24 May 2017 11:05:35 +0200 Subject: Fix the bogus migration on Template.password Fixes #336 --- .../versions/4bd95c99b2e7_fix_template_password.py | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/mailman/database/alembic/versions/4bd95c99b2e7_fix_template_password.py diff --git a/src/mailman/database/alembic/versions/4bd95c99b2e7_fix_template_password.py b/src/mailman/database/alembic/versions/4bd95c99b2e7_fix_template_password.py new file mode 100644 index 000000000..95a6a18f5 --- /dev/null +++ b/src/mailman/database/alembic/versions/4bd95c99b2e7_fix_template_password.py @@ -0,0 +1,25 @@ +"""Fix template password field. + +Revision ID: 4bd95c99b2e7 +Revises: 3002bac0c25a +Create Date: 2017-05-24 10:56:41.256602 + +""" + +from alembic import op +from mailman.database.types import SAUnicode + + +# revision identifiers, used by Alembic. +revision = '4bd95c99b2e7' +down_revision = '3002bac0c25a' + + +def upgrade(): + with op.batch_alter_table('template') as batch_op: + batch_op.alter_column('password', type_=SAUnicode) + + +def downgrade(): + # Don't go back to DateTime, it will fail if a password was set. + pass -- cgit v1.2.3-70-g09d2