Skip to content

Commit 489dd92

Browse files
committed
Rename function tables primary keys
1 parent c548293 commit 489dd92

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

packages/postgres-database/src/simcore_postgres_database/models/funcapi_function_job_collections_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
sa.String,
3232
doc="Description of the function job collection",
3333
),
34-
sa.PrimaryKeyConstraint("uuid", name="function_job_collections_pk"),
34+
sa.PrimaryKeyConstraint("uuid", name="funcapi_function_job_collections_pk"),
3535
)

packages/postgres-database/src/simcore_postgres_database/models/funcapi_function_job_collections_to_function_jobs_table.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@
3333
),
3434
doc="Unique identifier of the function job",
3535
),
36+
sa.PrimaryKeyConstraint(
37+
"function_job_collection_uuid",
38+
"function_job_uuid",
39+
name="funcapi_function_job_collections_to_function_jobs_pk",
40+
),
3641
)

packages/postgres-database/src/simcore_postgres_database/models/funcapi_function_jobs_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@
6666
nullable=True,
6767
doc="Fields specific for a function class",
6868
),
69-
sa.PrimaryKeyConstraint("uuid", name="function_jobs_pk"),
69+
sa.PrimaryKeyConstraint("uuid", name="funcapi_function_jobs_pk"),
7070
)

packages/postgres-database/src/simcore_postgres_database/models/funcapi_functions_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@
7070
nullable=True,
7171
doc="Default inputs of the function",
7272
),
73-
sa.PrimaryKeyConstraint("uuid", name="functions_pk"),
73+
sa.PrimaryKeyConstraint("uuid", name="funcapi_functions_pk"),
7474
)

0 commit comments

Comments
 (0)