Skip to content

Commit

Permalink
Merge pull request #26 from ianmcorvidae/periodic-notifications-interval
Browse files Browse the repository at this point in the history
Change the periodic_warning_period to an interval
  • Loading branch information
ianmcorvidae authored Aug 14, 2024
2 parents e662195 + 260c86a commit 74574ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BEGIN;

SET search_path = public, pg_catalog;

ALTER TABLE ONLY notif_statuses ALTER COLUMN periodic_warning_period TYPE integer USING NULL;

COMMIT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BEGIN;

SET search_path = public, pg_catalog;

ALTER TABLE ONLY notif_statuses ALTER COLUMN periodic_warning_period TYPE interval USING CASE WHEN periodic_warning_period IS NULL THEN NULL ELSE (periodic_warning_period::text || ' seconds'::text)::interval END;

COMMIT;

0 comments on commit 74574ce

Please sign in to comment.