You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/postgres-database/src/simcore_postgres_database/migration/versions/43d7e61eedf4_preparation_for_osparc_io_migration.py
+66-30Lines changed: 66 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
"""preparation for osparc.io migration
2
2
3
-
Revision ID: e98c45ff314f
3
+
Revision ID: 43d7e61eedf4
4
4
Revises: b39f2dc87ccd
5
-
Create Date: 2025-05-19 11:55:04.513120+00:00
5
+
Create Date: 2025-05-19 12:27:17.367971+00:00
6
6
7
7
"""
8
8
@@ -11,7 +11,7 @@
11
11
fromsqlalchemy.dialectsimportpostgresql
12
12
13
13
# revision identifiers, used by Alembic.
14
-
revision="e98c45ff314f"
14
+
revision="43d7e61eedf4"
15
15
down_revision="b39f2dc87ccd"
16
16
branch_labels=None
17
17
depends_on=None
@@ -20,7 +20,7 @@
20
20
defupgrade():
21
21
# ### commands auto generated by Alembic - please adjust! ###
@@ -84,6 +95,12 @@ class ResourceTrackerServiceRunStatus(str, enum.Enum):
84
95
sa.Column(
85
96
"user_id",
86
97
sa.BigInteger,
98
+
sa.ForeignKey(
99
+
users.c.id,
100
+
onupdate=RefActions.CASCADE,
101
+
ondelete=RefActions.CASCADE,
102
+
name="fk_service_runs_to_user_id",
103
+
),
87
104
nullable=False,
88
105
doc="We want to store the user id for tracking/billing purposes and be sure it stays there even when the user is deleted (that's also reason why we do not introduce foreign key)",
Copy file name to clipboardExpand all lines: packages/postgres-database/src/simcore_postgres_database/models/resource_tracker_service_runs__osparc_io_history_202508.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,8 @@ class ResourceTrackerServiceRunStatusOsparcIoHistory(str, enum.Enum):
0 commit comments