summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailman/database/alembic/versions/4bd95c99b2e7_fix_template_password.py25
1 files changed, 25 insertions, 0 deletions
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