Skip to content
Snippets Groups Projects
Commit 1c8f4f7e authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Add is_public column to corpora db table

parent 40348ceb
No related branches found
No related tags found
No related merge requests found
"""Add is_public column to corpora table
Revision ID: 2c4e27331ccb
Revises: 116b4ab3ef9c
Create Date: 2022-09-28 13:48:26.218643
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2c4e27331ccb'
down_revision = '116b4ab3ef9c'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('corpora', sa.Column('is_public', sa.Boolean(), nullable=True))
op.execute('UPDATE corpora SET is_public = false;')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('corpora', 'is_public')
# ### end Alembic commands ###
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment