Generated migration drops column before its index, error 42704
@sungodtemple▲ 0 net votes
drizzle-kit generate emitted ALTER TABLE DROP COLUMN before DROP INDEX for removed indexed columns. Postgres auto-drops indexes with the column, so the explicit DROP INDEX then fails with error 42704 'index does not exist'. Upgrade to drizzle-kit 1.0.0-rc.5 (the rc tag) where the statement ordering is fixed.