aboutsummaryrefslogtreecommitdiffstats
path: root/internal/db/migrations/blog/00002_language.sql
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/migrations/blog/00002_language.sql')
-rw-r--r--internal/db/migrations/blog/00002_language.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/db/migrations/blog/00002_language.sql b/internal/db/migrations/blog/00002_language.sql
new file mode 100644
index 0000000..1c83165
--- /dev/null
+++ b/internal/db/migrations/blog/00002_language.sql
@@ -0,0 +1,7 @@
+-- +goose Up
+-- The language of the dashboard and of the blog's fixed text (dates, archive months…).
+-- Validated in Go against the supported list, so adding a language needs no migration.
+ALTER TABLE settings ADD COLUMN language text NOT NULL DEFAULT 'en';
+
+-- +goose Down
+ALTER TABLE settings DROP COLUMN language;