Tweak migration

This commit is contained in:
Son NK 2020-04-14 22:32:12 +02:00
parent b5c369f084
commit be76322190

View file

@ -19,9 +19,9 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column("contact", "user_id", existing_type=sa.INTEGER(), nullable=False)
op.alter_column("email_log", "user_id", existing_type=sa.INTEGER(), nullable=False)
op.alter_column("file", "user_id", existing_type=sa.INTEGER(), nullable=False)
op.alter_column("contact", "user_id", existing_type=sa.INTEGER(), nullable=True)
op.alter_column("email_log", "user_id", existing_type=sa.INTEGER(), nullable=True)
op.alter_column("file", "user_id", existing_type=sa.INTEGER(), nullable=True)
# ### end Alembic commands ###