From dc4bda7c776f3059960ad12a22892f5245fc6ae6 Mon Sep 17 00:00:00 2001 From: Azareal Date: Tue, 28 May 2019 09:58:25 +1000 Subject: [PATCH] happy? x.x --- cmd/query_gen/tables.go | 2 +- patcher/patches.go | 2 +- templates/forum.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/query_gen/tables.go b/cmd/query_gen/tables.go index b84b4653..8f61c27a 100644 --- a/cmd/query_gen/tables.go +++ b/cmd/query_gen/tables.go @@ -181,7 +181,7 @@ func createTables(adapter qgen.Adapter) error { tblColumn{"fid", "int", 0, false, true, ""}, tblColumn{"name", "varchar", 100, false, false, ""}, tblColumn{"desc", "varchar", 200, false, false, ""}, - tblColumn{"tmpl", "varchar", 200, false, false, ""}, + tblColumn{"tmpl", "varchar", 200, false, false, "''"}, tblColumn{"active", "boolean", 0, false, false, "1"}, tblColumn{"order", "int", 0, false, false, "0"}, tblColumn{"topicCount", "int", 0, false, false, "0"}, diff --git a/patcher/patches.go b/patcher/patches.go index c8b853bc..187a1e9f 100644 --- a/patcher/patches.go +++ b/patcher/patches.go @@ -655,5 +655,5 @@ func patch21(scanner *bufio.Scanner) error { } func patch22(scanner *bufio.Scanner) error { - return execStmt(qgen.Builder.AddColumn("forums", tblColumn{"tmpl", "varchar", 200, false, false, ""}, nil)) + return execStmt(qgen.Builder.AddColumn("forums", tblColumn{"tmpl", "varchar", 200, false, false, "''"}, nil)) } \ No newline at end of file diff --git a/templates/forum.html b/templates/forum.html index 27bb234d..b82ba467 100644 --- a/templates/forum.html +++ b/templates/forum.html @@ -49,7 +49,7 @@ {{range .ItemList}}
- + {{.Title}}
{{.Creator.Name}} @@ -72,7 +72,7 @@