aboutsummaryrefslogtreecommitdiff
path: root/src/guff/migrations.cr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-08 00:45:24 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-08 00:45:24 -0500
commit6e3841a6a5c3c9bd1590941585fcd044e76ce9cc (patch)
treea3992f610d8731c4ce762ac948f1e4d577a595cf /src/guff/migrations.cr
parent5bea72753a2afbaaedbed1538d44e1c1b586917a (diff)
downloadold-guff-6e3841a6a5c3c9bd1590941585fcd044e76ce9cc.tar.bz2
old-guff-6e3841a6a5c3c9bd1590941585fcd044e76ce9cc.zip
move migrations to separate file
Diffstat (limited to 'src/guff/migrations.cr')
-rw-r--r--src/guff/migrations.cr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guff/migrations.cr b/src/guff/migrations.cr
index aef1f27..0894aea 100644
--- a/src/guff/migrations.cr
+++ b/src/guff/migrations.cr
@@ -78,10 +78,10 @@ module Guff
CREATE INDEX in_tags_name ON tags(name)
}, %{
CREATE TABLE post_tags (
- tag_id INTEGER NOT NULL
+ tag_id INTEGER NOT NULL
REFERENCES tags(tag_id),
- post_id INTEGER NOT NULL
+ post_id INTEGER NOT NULL
REFERENCES posts(post_id),
UNIQUE(tag_id, post_id)