Skip to content

Commit 62c8a09

Browse files
🐛 migration fix (🗃️) (#7216)
1 parent b0edf43 commit 62c8a09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/postgres-database/src/simcore_postgres_database/migration/versions/68777fdf9539_add_licensed_resources.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818

1919
# Reuse the existing Enum type
20-
existing_enum = sa.Enum("VIP_MODEL", name="licensedresourcetype", native_enum=False)
20+
licensed_resource_type = postgresql.ENUM(
21+
"VIP_MODEL", name="licensedresourcetype", create_type=False
22+
)
2123

2224

2325
def upgrade():
@@ -34,7 +36,7 @@ def upgrade():
3436
sa.Column("licensed_resource_name", sa.String(), nullable=False),
3537
sa.Column(
3638
"licensed_resource_type",
37-
existing_enum, # Reuse existing Enum instead of redefining it
39+
licensed_resource_type, # Reuse existing Enum instead of redefining it
3840
nullable=False,
3941
),
4042
sa.Column(

0 commit comments

Comments
 (0)