dialects.postgresql.ENUM instead of sa.Enum

This commit is contained in:
Cayo Puigdefabregas 2022-06-07 15:05:39 +02:00
parent 498ce6763d
commit 7a0e21d682

View file

@ -27,7 +27,7 @@ def get_inv():
def upgrade(): def upgrade():
# op.execute("COMMIT") # op.execute("COMMIT")
op.execute("ALTER TYPE snapshotsoftware ADD VALUE 'WorkbenchDesktop'") op.execute("ALTER TYPE snapshotsoftware ADD VALUE 'WorkbenchDesktop'")
SOFTWARE = sa.Enum( SOFTWARE = sa.dialects.postgresql.ENUM(
'Workbench', 'Workbench',
'WorkbenchAndroid', 'WorkbenchAndroid',
'AndroidApp', 'AndroidApp',