summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-12-11 19:57:12 -0500
committerFreya Murphy <freya@freyacat.org>2024-12-11 19:57:12 -0500
commitd5f1976e62cb0a32b8bafdb71d7d082d16413256 (patch)
tree487832bc4deae45429bd78875ebb221739d73a8b /src/db
parentfix spacing, remote __init function (diff)
downloadwebsite-d5f1976e62cb0a32b8bafdb71d7d082d16413256.tar.gz
website-d5f1976e62cb0a32b8bafdb71d7d082d16413256.tar.bz2
website-d5f1976e62cb0a32b8bafdb71d7d082d16413256.zip
make ip nullable, refactor get_ip and get_req_route in router
Diffstat (limited to 'src/db')
-rw-r--r--src/db/migrations/0002.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/db/migrations/0002.sql b/src/db/migrations/0002.sql
new file mode 100644
index 0000000..99f1494
--- /dev/null
+++ b/src/db/migrations/0002.sql
@@ -0,0 +1,12 @@
+BEGIN TRANSACTION;
+SET search_path = public;
+
+-- Migration Start
+ALTER TABLE admin.comment
+ ALTER COLUMN ip DROP NOT NULL;
+-- Migration End;
+
+-- Set Current Revision
+UPDATE sys.database_info SET curr_revision = 3 WHERE name = current_database();
+
+COMMIT TRANSACTION;