diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-31 18:49:39 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-31 18:49:39 -0400 |
commit | d9ad2ce483d8a204d59f01c1806b7a6e9147dbb9 (patch) | |
tree | 564f08d0ade5befd0f46298a046d0cd34db771f4 /src/guff | |
parent | fa5037cdfe552b97afddfe22517f89dc99dacdcd (diff) | |
download | old-guff-d9ad2ce483d8a204d59f01c1806b7a6e9147dbb9.tar.bz2 old-guff-d9ad2ce483d8a204d59f01c1806b7a6e9147dbb9.zip |
set default session
Diffstat (limited to 'src/guff')
-rw-r--r-- | src/guff/migrations.cr | 3 |
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) |