diff options
| author | Barry Warsaw | 2017-05-25 01:45:09 +0000 |
|---|---|---|
| committer | Barry Warsaw | 2017-05-25 01:45:09 +0000 |
| commit | 3596e9f971e289270ec372266cd0d891b61b56e6 (patch) | |
| tree | bd5eee87ecc4f7dff8e13e2e51a0ac88365da7d0 /src/mailman | |
| parent | 6fb8bbbec1f8cc86e91002402b365bd1753d087a (diff) | |
| parent | 3e28a57b7107543f25bdfd7a13ab72e730494e6a (diff) | |
| download | mailman-3596e9f971e289270ec372266cd0d891b61b56e6.tar.gz mailman-3596e9f971e289270ec372266cd0d891b61b56e6.tar.zst mailman-3596e9f971e289270ec372266cd0d891b61b56e6.zip | |
Diffstat (limited to 'src/mailman')
| -rw-r--r-- | src/mailman/database/alembic/versions/4bd95c99b2e7_fix_template_password.py | 25 |
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 |
