Skip to content

Commit ea98c60

Browse files
committed
Fix primary key funcjobs
1 parent d9dd806 commit ea98c60

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
"""Add functions product access
22
3-
Revision ID: fa3c3a9a1f7f
3+
Revision ID: afb1ba08f3c2
44
Revises: 275642b33db0
5-
Create Date: 2025-05-30 11:28:17.223201+00:00
5+
Create Date: 2025-05-30 14:24:46.198755+00:00
66
77
"""
88

99
import sqlalchemy as sa
1010
from alembic import op
1111

1212
# revision identifiers, used by Alembic.
13-
revision = "fa3c3a9a1f7f"
13+
revision = "afb1ba08f3c2"
1414
down_revision = "275642b33db0"
1515
branch_labels = None
1616
depends_on = None

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
column_created_datetime(),
6868
column_modified_datetime(),
6969
sa.PrimaryKeyConstraint(
70-
"function_job_uuid", "group_id", name="pk_func_access_to_func_jobs_group"
70+
"function_job_uuid",
71+
"group_id",
72+
"product_name",
73+
name="pk_func_access_to_func_jobs_group",
7174
),
7275
)

0 commit comments

Comments
 (0)