Barry Warsaw pushed to branch master at mailman / Mailman

Commits:
3e28a57b by Aurélien Bompard at 2017-05-24T16:13:37-07:00
Fix the bogus migration on Template.password

Fixes #336

- - - - -
3596e9f9 by Barry Warsaw at 2017-05-25T01:45:09+00:00
Merge branch 'issue336' into 'master'

Fix the bogus migration on Template.password

Closes #336

See merge request !282
- - - - -


1 changed file:

- + src/mailman/database/alembic/versions/4bd95c99b2e7_fix_template_password.py


Changes:

=====================================
src/mailman/database/alembic/versions/4bd95c99b2e7_fix_template_password.py
=====================================
--- /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



View it on GitLab: 
https://gitlab.com/mailman/mailman/compare/6fb8bbbec1f8cc86e91002402b365bd1753d087a...3596e9f971e289270ec372266cd0d891b61b56e6

---
View it on GitLab: 
https://gitlab.com/mailman/mailman/compare/6fb8bbbec1f8cc86e91002402b365bd1753d087a...3596e9f971e289270ec372266cd0d891b61b56e6
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to