diff --git a/migrations/versions/74254ecb1e90_.py b/migrations/versions/74254ecb1e90_.py new file mode 100644 index 00000000..593636ea --- /dev/null +++ b/migrations/versions/74254ecb1e90_.py @@ -0,0 +1,32 @@ +"""empty message + +Revision ID: 74254ecb1e90 +Revises: 4d9ae1a4eb48 +Create Date: 2020-03-20 08:09:13.858558 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '74254ecb1e90' +down_revision = '4d9ae1a4eb48' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.alter_column('file', 'primary', + existing_type=sa.BOOLEAN(), + nullable=False) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.alter_column('file', 'primary', + existing_type=sa.BOOLEAN(), + nullable=True) + # ### end Alembic commands ###