-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from ianmcorvidae/periodic-notifications-interval
Change the periodic_warning_period to an interval
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
migrations/000039_notif_statuses_vice_periodic_interval.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
7 changes: 7 additions & 0 deletions
7
migrations/000039_notif_statuses_vice_periodic_interval.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |