aboutsummaryrefslogtreecommitdiffstats
path: root/internal/db
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db')
-rw-r--r--internal/db/migrations/blog/00012_page_show_notices.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/db/migrations/blog/00012_page_show_notices.sql b/internal/db/migrations/blog/00012_page_show_notices.sql
new file mode 100644
index 0000000..da4ff3d
--- /dev/null
+++ b/internal/db/migrations/blog/00012_page_show_notices.sql
@@ -0,0 +1,7 @@
+-- +goose Up
+-- A per-page switch for the announcements: an "About" page can do without
+-- the notices the home page carries.
+ALTER TABLE pages ADD COLUMN show_notices boolean NOT NULL DEFAULT true;
+
+-- +goose Down
+ALTER TABLE pages DROP COLUMN show_notices;