Skip to content

Commit

Permalink
fix(migration): Only attempt to drop types if they exist (apache#23650)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrag1 authored and sebastianliebscher committed Apr 28, 2023
1 parent 476e903 commit ef71012
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit ef71012

Please sign in to comment.