aboutsummaryrefslogtreecommitdiff
path: root/src/guff/database-updater.cr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-07 00:00:32 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-07 00:00:32 -0500
commitfbb979af779341ed15c0c4d9d08ec52eaebb1037 (patch)
tree9cf11f1cbc9d1a9ae4fc1579aeb865770ec44d27 /src/guff/database-updater.cr
parentf0f87c439037715cac407004e2220c678d96757a (diff)
downloadold-guff-fbb979af779341ed15c0c4d9d08ec52eaebb1037.tar.bz2
old-guff-fbb979af779341ed15c0c4d9d08ec52eaebb1037.zip
add site-model, misc fixes
Diffstat (limited to 'src/guff/database-updater.cr')
-rw-r--r--src/guff/database-updater.cr2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/guff/database-updater.cr b/src/guff/database-updater.cr
index daf77fd..d472c50 100644
--- a/src/guff/database-updater.cr
+++ b/src/guff/database-updater.cr
@@ -46,6 +46,8 @@ module Guff
is_default BOOLEAN NOT NULL DEFAULT false
)
}, %{
+ INSERT INTO sites(name, is_default) VALUES ('Default', 1)
+ }, %{
CREATE TABLE posts (
-- unique id
post_id INTEGER PRIMARY KEY,