Skip to content

Commit

Permalink
update migration to remove array_append
Browse files Browse the repository at this point in the history
  • Loading branch information
jadmsaadaot committed Feb 24, 2025
1 parent 4551a9d commit 811b291
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions submit-api/migrations/versions/357e22a9cf8f_.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@


def upgrade():
op.execute(
"UPDATE packages SET status = array_append(status, 'UNDER_CONSULTATION_CHECK') WHERE 'FAILED_CONSULTATION_CHECK' = ANY(status);")
op.execute("UPDATE packages SET status = array_remove(status, 'FAILED_CONSULTATION_CHECK') WHERE 'FAILED_CONSULTATION_CHECK' = ANY(status);")
op.execute("UPDATE items SET status = 'UNDER_CONSULTATION_CHECK' WHERE status = 'FAILED_CONSULTATION_CHECK';")

Expand Down

0 comments on commit 811b291

Please sign in to comment.