aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-08 00:56:25 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-08 00:56:25 -0500
commit6103ade673044d55832343aafedde68935347d5f (patch)
tree32cf033739b7c42681ccbbb4c9280a0cf4b4c3b3
parent6e3841a6a5c3c9bd1590941585fcd044e76ce9cc (diff)
downloadold-guff-6103ade673044d55832343aafedde68935347d5f.tar.bz2
old-guff-6103ade673044d55832343aafedde68935347d5f.zip
rename html to body and body to raw_body
-rw-r--r--TODO.md6
-rw-r--r--src/guff/migrations.cr10
2 files changed, 11 insertions, 5 deletions
diff --git a/TODO.md b/TODO.md
new file mode 100644
index 0000000..62712ad
--- /dev/null
+++ b/TODO.md
@@ -0,0 +1,6 @@
+TODO
+----
+* post filters
+* fts
+* projects
+* readonly-db connection (using `PRAGMA query_only`)
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)