diff --git a/amt/migrations/versions/728569be8949_add_keycloak_id_to_user_and_remove_.py b/amt/migrations/versions/728569be8949_add_keycloak_id_to_user_and_remove_.py index 084229f1..0d1d38bd 100755 --- a/amt/migrations/versions/728569be8949_add_keycloak_id_to_user_and_remove_.py +++ b/amt/migrations/versions/728569be8949_add_keycloak_id_to_user_and_remove_.py @@ -20,11 +20,11 @@ def upgrade() -> None: - # ### commands auto generated by Alembic - please adjust! ### - #with op.batch_alter_table("task", schema=None) as batch_op: - # batch_op.alter_column("user_id", existing_type=sa.INTEGER(), type_=sa.UUID(), existing_nullable=True) - #with op.batch_alter_table("user", schema=None) as batch_op: - # batch_op.alter_column("id", existing_type=sa.INTEGER(), type_=sa.UUID(), existing_nullable=False) + ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table("task", schema=None) as batch_op: + batch_op.alter_column("user_id", existing_type=sa.INTEGER(), type_=sa.UUID(), existing_nullable=True) + with op.batch_alter_table("user", schema=None) as batch_op: + batch_op.alter_column("id", existing_type=sa.INTEGER(), type_=sa.UUID(), existing_nullable=False) op.drop_column("user", "avatar") # ### end Alembic commands ###