mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-26 03:14:19 +00:00
43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 790ce9512e75
|
||
|
Revises: 6c2227f1cc77
|
||
|
Create Date: 2021-01-25 11:13:36.953269
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '790ce9512e75'
|
||
|
down_revision = '6c2227f1cc77'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.alter_column('corpora', 'current_nr_of_tokens',
|
||
|
existing_type=sa.BIGINT(),
|
||
|
type_=sa.Integer(),
|
||
|
existing_nullable=True)
|
||
|
op.alter_column('corpora', 'max_nr_of_tokens',
|
||
|
existing_type=sa.BIGINT(),
|
||
|
type_=sa.Integer(),
|
||
|
existing_nullable=True)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.alter_column('corpora', 'max_nr_of_tokens',
|
||
|
existing_type=sa.Integer(),
|
||
|
type_=sa.BIGINT(),
|
||
|
existing_nullable=True)
|
||
|
op.alter_column('corpora', 'current_nr_of_tokens',
|
||
|
existing_type=sa.Integer(),
|
||
|
type_=sa.BIGINT(),
|
||
|
existing_nullable=True)
|
||
|
# ### end Alembic commands ###
|