aboutsummaryrefslogtreecommitdiff
path: root/src/guff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-31 18:49:39 -0400
committerPaul Duncan <pabs@pablotron.org>2016-03-31 18:49:39 -0400
commitd9ad2ce483d8a204d59f01c1806b7a6e9147dbb9 (patch)
tree564f08d0ade5befd0f46298a046d0cd34db771f4 /src/guff
parentfa5037cdfe552b97afddfe22517f89dc99dacdcd (diff)
downloadold-guff-d9ad2ce483d8a204d59f01c1806b7a6e9147dbb9.tar.bz2
old-guff-d9ad2ce483d8a204d59f01c1806b7a6e9147dbb9.zip
set default session
Diffstat (limited to 'src/guff')
-rw-r--r--src/guff/migrations.cr3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guff/migrations.cr b/src/guff/migrations.cr
index c72edde..c32e671 100644
--- a/src/guff/migrations.cr
+++ b/src/guff/migrations.cr
@@ -139,7 +139,8 @@ module Guff
updated_at TIMESTAMP WITH TIME ZONE
NOT NULL DEFAULT CURRENT_TIMESTAMP,
- data TEXT NOT NULL DEFAULT ''
+ data TEXT NOT NULL DEFAULT '{}'
+ CHECK (LENGTH(data) > 2)
)
}, %{
CREATE INDEX in_sessions_sid on sessions(session_id)