From 8900ebb4cd8fcc6054b5ae91333c87656c5de790 Mon Sep 17 00:00:00 2001 From: Azareal Date: Thu, 27 Dec 2018 15:53:49 +1000 Subject: [PATCH] Don't forget these two bits. --- cmd/query_gen/tables.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/query_gen/tables.go b/cmd/query_gen/tables.go index 6fc2908d..ff17b372 100644 --- a/cmd/query_gen/tables.go +++ b/cmd/query_gen/tables.go @@ -207,6 +207,7 @@ func createTables(adapter qgen.Adapter) error { tblColumn{"createdAt", "createdAt", 0, false, false, ""}, tblColumn{"lastReplyAt", "datetime", 0, false, false, ""}, tblColumn{"lastReplyBy", "int", 0, false, false, ""}, + tblColumn{"lastReplyID", "int", 0, false, false, "0"}, tblColumn{"createdBy", "int", 0, false, false, ""}, // TODO: Make this a foreign key tblColumn{"is_closed", "boolean", 0, false, false, "0"}, tblColumn{"sticky", "boolean", 0, false, false, "0"}, @@ -215,7 +216,7 @@ func createTables(adapter qgen.Adapter) error { tblColumn{"ipaddress", "varchar", 200, false, false, "0.0.0.0.0"}, tblColumn{"postCount", "int", 0, false, false, "1"}, tblColumn{"likeCount", "int", 0, false, false, "0"}, - //tblColumn{"attachCount","int",0,false,false,"0"}, + tblColumn{"attachCount", "int", 0, false, false, "0"}, tblColumn{"words", "int", 0, false, false, "0"}, tblColumn{"views", "int", 0, false, false, "0"}, //tblColumn{"dailyViews", "int", 0, false, false, "0"},