Skip to content

Commit

Permalink
Only drop types if they exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrag1 committed Apr 11, 2023
1 parent 825006d commit 190332f
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 190332f

Please sign in to comment.