Add creation_data to corpus.

This commit is contained in:
Patrick Jentsch
2019-08-06 15:39:09 +02:00
parent 32c6b9ab8a
commit 65becc1187
3 changed files with 35 additions and 10 deletions

View File

@ -0,0 +1,28 @@
"""Add creation_data to corpus
Revision ID: c425353fb4dc
Revises: 3f2aee5e6a45
Create Date: 2019-08-06 15:38:33.930052
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c425353fb4dc'
down_revision = '3f2aee5e6a45'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('corpora', sa.Column('creation_data', sa.DateTime(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('corpora', 'creation_data')
# ### end Alembic commands ###