Add an end of vacation field, related to #218

This commit is contained in:
kaiyou
2017-11-10 15:25:30 +01:00
parent fb42797ab7
commit 011e1fa52d
4 changed files with 31 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
""" 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')