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/1a791d837399_preparation_for_osparc_io_migration.py
Copy file name to clipboardExpand all lines: packages/postgres-database/src/simcore_postgres_database/models/resource_tracker_service_runs.py
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@
7
7
8
8
from ._commonimportNUMERIC_KWARGS, RefActions, column_modified_datetime
9
9
from .baseimportmetadata
10
-
from .usersimportusers
11
10
12
11
13
12
classResourceTrackerServiceType(str, enum.Enum):
@@ -95,12 +94,6 @@ class ResourceTrackerServiceRunStatus(str, enum.Enum):
95
94
sa.Column(
96
95
"user_id",
97
96
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
-
),
104
97
nullable=False,
105
98
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)",
0 commit comments