mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-28 03:56:43 +02:00
Add the migration script for wildcard aliases, related to #38
This commit is contained in:
parent
9d7f89285e
commit
0371da6307
22
admin/migrations/versions/c5696b48442d_.py
Normal file
22
admin/migrations/versions/c5696b48442d_.py
Normal file
@ -0,0 +1,22 @@
|
||||
""" Add wildcard aliases
|
||||
|
||||
Revision ID: c5696b48442d
|
||||
Revises: ff0417f4318f
|
||||
Create Date: 2016-08-15 22:19:50.128960
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'c5696b48442d'
|
||||
down_revision = 'ff0417f4318f'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('alias', sa.Column('wildcard', sa.Boolean(), nullable=True))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('alias', 'wildcard')
|
Loading…
x
Reference in New Issue
Block a user