mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 17:25:44 +00:00
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 62233e0cb2c7
|
||
|
Revises: 68772b6560c3
|
||
|
Create Date: 2020-05-04 09:42:25.408403
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '62233e0cb2c7'
|
||
|
down_revision = '68772b6560c3'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('corpora', sa.Column('current_nr_of_tokens', sa.BigInteger(), nullable=True))
|
||
|
op.add_column('corpora', sa.Column('max_nr_of_tokens', sa.BigInteger(), nullable=True))
|
||
|
op.drop_column('corpora', 'analysis_container_name')
|
||
|
op.drop_column('corpora', 'analysis_container_ip')
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('corpora', sa.Column('analysis_container_ip', sa.VARCHAR(length=16), autoincrement=False, nullable=True))
|
||
|
op.add_column('corpora', sa.Column('analysis_container_name', sa.VARCHAR(length=32), autoincrement=False, nullable=True))
|
||
|
op.drop_column('corpora', 'max_nr_of_tokens')
|
||
|
op.drop_column('corpora', 'current_nr_of_tokens')
|
||
|
# ### end Alembic commands ###
|