Skip to content

Commit

Permalink
Merge pull request #25 from ianmcorvidae/periodic-vice-notifications
Browse files Browse the repository at this point in the history
Create an initial periodic VICE notifications migration
  • Loading branch information
ianmcorvidae authored Jun 28, 2024
2 parents 1429984 + fb69645 commit e662195
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions migrations/000038_notif_statuses_vice_periodic.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
BEGIN;

SET search_path = public, pg_catalog;

ALTER TABLE ONLY notif_statuses
DROP COLUMN IF EXISTS last_periodic_warning;

ALTER TABLE ONLY notif_statuses
DROP COLUMN IF EXISTS periodic_warning_period;

COMMIT;
11 changes: 11 additions & 0 deletions migrations/000038_notif_statuses_vice_periodic.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
BEGIN;

SET search_path = public, pg_catalog;

ALTER TABLE ONLY notif_statuses
ADD COLUMN IF NOT EXISTS last_periodic_warning timestamp;

ALTER TABLE ONLY notif_statuses
ADD COLUMN IF NOT EXISTS periodic_warning_period integer;

COMMIT;

0 comments on commit e662195

Please sign in to comment.