fix 'down' migration for tracked_by column
BEGIN;
- ALTER TABLE "builds" DROP COLUMN "tracked_by";
-
DROP MATERIALIZED VIEW transition_builds_per_job;
DROP MATERIALIZED VIEW next_builds_per_job;
DROP MATERIALIZED VIEW latest_completed_builds_per_job;
@@ -101,4 +99,6 @@ BEGIN;
WITH NO DATA;
CREATE UNIQUE INDEX transition_builds_per_job_id ON transition_builds_per_job USING btree (id);
REFRESH MATERIALIZED VIEW transition_builds_per_job;
+
+ ALTER TABLE builds DROP COLUMN tracked_by;
COMMIT;
