aboutsummaryrefslogtreecommitdiff
path: root/src/guff
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff')
-rw-r--r--src/guff/migrations.cr10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/guff/migrations.cr b/src/guff/migrations.cr
index 0894aea..2d08c9e 100644
--- a/src/guff/migrations.cr
+++ b/src/guff/migrations.cr
@@ -55,13 +55,13 @@ module Guff
slug TEXT NOT NULL
CHECK (LENGTH(slug) > 0),
- -- body (raw text before filters)
- body TEXT NOT NULL
- CHECK (LENGTH(body) > 0),
+ -- raw body (raw text before filters)
+ raw_body TEXT NOT NULL
+ CHECK (LENGTH(raw_body) > 0),
-- generated html (after filters)
- html TEXT NOT NULL
- CHECK (LENGTH(html) > 0)
+ body TEXT NOT NULL
+ CHECK (LENGTH(body) > 0)
)
}, %{
CREATE INDEX in_posts_slug ON posts(slug)