Skip to content

Commit 85cf82d

Browse files
committed
Reset primary keys in downgrade
1 parent ab119d5 commit 85cf82d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/postgres-database/src/simcore_postgres_database/migration/versions/06596ce2bc3e_add_order_to_function_job_collections.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,16 @@ def upgrade():
6060

6161
def downgrade():
6262
# ### commands auto generated by Alembic - please adjust! ###
63+
op.drop_constraint(
64+
"funcapi_function_job_collections_to_function_jobs_pk",
65+
"funcapi_function_job_collections_to_function_jobs",
66+
type_="primary",
67+
)
68+
op.create_primary_key(
69+
"funcapi_function_job_collections_to_function_jobs_pk",
70+
"funcapi_function_job_collections_to_function_jobs",
71+
["function_job_collection_uuid", "function_job_uuid"],
72+
)
73+
6374
op.drop_column("funcapi_function_job_collections_to_function_jobs", "order")
6475
# ### end Alembic commands ###

0 commit comments

Comments
 (0)