mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-16 01:35:41 +00:00
33 lines
1012 B
Python
33 lines
1012 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 776761fb7466
|
||
|
Revises: 0aa38a7973c5
|
||
|
Create Date: 2019-11-07 08:34:01.676055
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '776761fb7466'
|
||
|
down_revision = '0aa38a7973c5'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('corpora', sa.Column('analysis_container_ip', sa.String(length=16), nullable=True))
|
||
|
op.add_column('corpora', sa.Column('analysis_container_name', sa.String(length=32), nullable=True))
|
||
|
op.drop_column('corpora', 'analysis_ip')
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('corpora', sa.Column('analysis_ip', sa.VARCHAR(length=16), autoincrement=False, nullable=True))
|
||
|
op.drop_column('corpora', 'analysis_container_name')
|
||
|
op.drop_column('corpora', 'analysis_container_ip')
|
||
|
# ### end Alembic commands ###
|