mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix(migration): Only attempt to drop types if they exist (#23650)
This commit is contained in:
parent
a6f74f10ad
commit
61ddfe6972
@ -37,8 +37,8 @@ def upgrade():
|
||||
'ALTER TABLE "tagged_object" ALTER COLUMN "object_type" TYPE VARCHAR'
|
||||
)
|
||||
conn.execute('ALTER TABLE "tag" ALTER COLUMN "type" TYPE VARCHAR')
|
||||
conn.execute("DROP TYPE objecttypes")
|
||||
conn.execute("DROP TYPE tagtypes")
|
||||
conn.execute("DROP TYPE IF EXISTS objecttypes")
|
||||
conn.execute("DROP TYPE IF EXISTS tagtypes")
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
Loading…
Reference in New Issue
Block a user