mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 19:04:18 +00:00
31 lines
830 B
Python
31 lines
830 B
Python
"""empty message
|
|
|
|
Revision ID: a4b3cf4ab098
|
|
Revises: c384d7b3268a
|
|
Create Date: 2021-09-23 13:14:16.227784
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'a4b3cf4ab098'
|
|
down_revision = 'c384d7b3268a'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('corpora', sa.Column('num_tokens', sa.Integer(), nullable=True))
|
|
op.drop_column('corpora', 'current_nr_of_tokens')
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('corpora', sa.Column('current_nr_of_tokens', sa.INTEGER(), autoincrement=False, nullable=True))
|
|
op.drop_column('corpora', 'num_tokens')
|
|
# ### end Alembic commands ###
|