summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-25 12:55:49 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-01 16:46:16 +0100
commitc0a8a46352279e105b026b1e0344eba6b0cfb231 (patch)
treeb51122af72b0bd9b4c410120c5cf5e5dbb887547 /schema.sql
parent84b1bbaea189766d44c905bd055acc010dd852ba (diff)
downloadserver-c0a8a46352279e105b026b1e0344eba6b0cfb231.tar.gz
Use table for forbidden user names.
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql14
1 files changed, 13 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index 831be32..f10ab2c 100644
--- a/schema.sql
+++ b/schema.sql
@@ -1,6 +1,18 @@
-- Blacklists --
-create table if not exists blacklist_mail ( mail text primary key ) without rowid;
+create table if not exists blacklist_mail ( mail text primary key collate nocase ) without rowid;
+create table if not exists blacklist_name ( name text primary key collate nocase ) without rowid;
+
+insert or ignore into blacklist_mail (mail) values
+ ('%@example.com')
+;
+
+insert or ignore into blacklist_name (name) values
+ ('None'),
+ ('System'),
+ ('Deleted'),
+ ('null')
+;
-- Titles --