Skip to content

Commit

Permalink
fixup! backend: migrate job tables to v2 schema (v2 phase 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
uael committed Feb 4, 2025
1 parent e9d0c72 commit f1d3850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-- Add down migration script here
DROP FUNCTION v2_job_completed_before_insert() CASCADE;
DROP FUNCTION v2_job_completed_before_update() CASCADE;
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ CREATE OR REPLACE FUNCTION v2_job_completed_before_update() RETURNS TRIGGER AS $
preprocessed = CASE WHEN preprocessed = FALSE THEN TRUE ELSE preprocessed END
WHERE id = NEW.id;
END IF;
RETURN NULL;
END $$ LANGUAGE plpgsql;

CREATE OR REPLACE TRIGGER v2_job_completed_before_update_trigger
Expand Down

0 comments on commit f1d3850

Please sign in to comment.