You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
480 B
Python
24 lines
480 B
Python
""" Add an enddate for the vacation mode
|
|
|
|
Revision ID: 77aa22ad72e2
|
|
Revises: 9400a032eb1a
|
|
Create Date: 2017-11-10 15:10:33.477592
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '77aa22ad72e2'
|
|
down_revision = '9400a032eb1a'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
op.add_column('user', sa.Column('reply_enddate', sa.Date(), nullable=False,
|
|
server_default="2999-12-31"))
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column('user', 'reply_enddate')
|