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
1 changed files with 1 additions and 1 deletions

View File

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