nopaque/web/migrations/versions/62233e0cb2c7_.py

35 lines
1.2 KiB
Python
Raw Normal View History

2020-05-04 10:08:43 +00:00
"""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 ###