File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
packages/postgres-database/src/simcore_postgres_database/migration/versions Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ """computational collection uniquencess
2+
3+ Revision ID: 61b98a60e934
4+ Revises: df61d1b2b967
5+ Create Date: 2025-07-08 15:40:12.714684+00:00
6+
7+ """
8+
9+ from alembic import op
10+
11+ # revision identifiers, used by Alembic.
12+ revision = "61b98a60e934"
13+ down_revision = "df61d1b2b967"
14+ branch_labels = None
15+ depends_on = None
16+
17+
18+ def upgrade ():
19+ # ### commands auto generated by Alembic - please adjust! ###
20+ op .create_unique_constraint (
21+ "client_or_system_generated_id_uniqueness" ,
22+ "comp_runs_collections" ,
23+ ["client_or_system_generated_id" ],
24+ )
25+ # ### end Alembic commands ###
26+
27+
28+ def downgrade ():
29+ # ### commands auto generated by Alembic - please adjust! ###
30+ op .drop_constraint (
31+ "client_or_system_generated_id_uniqueness" ,
32+ "comp_runs_collections" ,
33+ type_ = "unique" ,
34+ )
35+ # ### end Alembic commands ###
You can’t perform that action at this time.
0 commit comments