diff --git a/packages/postgres-database/src/simcore_postgres_database/migration/versions/68777fdf9539_add_licensed_resources.py b/packages/postgres-database/src/simcore_postgres_database/migration/versions/68777fdf9539_add_licensed_resources.py index a8a66d494365..745e7a2e74d3 100644 --- a/packages/postgres-database/src/simcore_postgres_database/migration/versions/68777fdf9539_add_licensed_resources.py +++ b/packages/postgres-database/src/simcore_postgres_database/migration/versions/68777fdf9539_add_licensed_resources.py @@ -17,7 +17,9 @@ # Reuse the existing Enum type -existing_enum = sa.Enum("VIP_MODEL", name="licensedresourcetype", native_enum=False) +licensed_resource_type = postgresql.ENUM( + "VIP_MODEL", name="licensedresourcetype", create_type=False +) def upgrade(): @@ -34,7 +36,7 @@ def upgrade(): sa.Column("licensed_resource_name", sa.String(), nullable=False), sa.Column( "licensed_resource_type", - existing_enum, # Reuse existing Enum instead of redefining it + licensed_resource_type, # Reuse existing Enum instead of redefining it nullable=False, ), sa.Column(