mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
31 lines
905 B
Python
31 lines
905 B
Python
"""empty message
|
|
|
|
Revision ID: e256f5cac75d
|
|
Revises: 389bcf564726
|
|
Create Date: 2020-07-01 07:45:24.637861
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'e256f5cac75d'
|
|
down_revision = '389bcf564726'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('result_files', 'corpus_metadata')
|
|
op.add_column('results', sa.Column('corpus_metadata', sa.JSON(), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('results', 'corpus_metadata')
|
|
op.add_column('result_files', sa.Column('corpus_metadata', postgresql.JSON(astext_type=sa.Text()), autoincrement=False, nullable=True))
|
|
# ### end Alembic commands ###
|