From fa9dbe0edad5d06467182f87d7e979b7842b0215 Mon Sep 17 00:00:00 2001
From: Freya Murphy <freya@freyacat.org>
Date: Fri, 20 Dec 2024 00:51:30 -0500
Subject: add lang column to user

---
 src/db/migrations/0004.sql | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 src/db/migrations/0004.sql

(limited to 'src/db/migrations/0004.sql')

diff --git a/src/db/migrations/0004.sql b/src/db/migrations/0004.sql
new file mode 100644
index 0000000..addf0fc
--- /dev/null
+++ b/src/db/migrations/0004.sql
@@ -0,0 +1,16 @@
+BEGIN TRANSACTION;
+SET search_path = public;
+
+-- Migration Start
+CREATE TYPE xssbook.lang_type AS ENUM (
+	'en_US'
+);
+
+ALTER TABLE xssbook.user
+	ADD COLUMN lang xssbook.lang_type DEFAULT 'en_US' NOT NULL;
+-- Migration End;
+
+-- Set Current Revision
+UPDATE sys.database_info SET curr_revision = 5 WHERE name = current_database();
+
+COMMIT TRANSACTION;
-- 
cgit v1.2.3-freya

