aboutsummaryrefslogtreecommitdiff
path: root/data/init.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'data/init.yaml')
-rw-r--r--data/init.yaml8
1 files changed, 5 insertions, 3 deletions
diff --git a/data/init.yaml b/data/init.yaml
index de78d23..e851dab 100644
--- a/data/init.yaml
+++ b/data/init.yaml
@@ -207,11 +207,13 @@ init_sql:
-- site description
body TEXT NOT NULL DEFAULT '',
- -- site description
+ -- site language
+ -- FIXME: should i use the IANA registry to tighten this up?
+ -- src: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
lang TEXT NOT NULL DEFAULT 'en-US' CHECK (
-- e.g. 'en' or 'en-US'
- (LENGTH(lang) = 2 OR LENGTH(lang) = 5) AND
- (lang LIKE '__' OR lang LIKE '__-__')
+ (LENGTH(lang) > 2 OR LENGTH(lang) < 20) AND
+ lang NOT LIKE '% %'
),
-- date that site was created