From 647df66989067ca27b53b82ba743bda7b1a92e08 Mon Sep 17 00:00:00 2001 From: comraderat Date: Sat, 2 May 2020 20:11:25 +0200 Subject: [PATCH] Add deprecation notice to Post and RecentPost --- pkg/gcsql/tables.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/gcsql/tables.go b/pkg/gcsql/tables.go index c2b79e1e..9b594d3b 100644 --- a/pkg/gcsql/tables.go +++ b/pkg/gcsql/tables.go @@ -317,6 +317,8 @@ type BoardSection struct { } // Post represents each post in the database +// Deprecated. Struct was made for use with old database, deprecated since refactor of april 2020. +// Please refactor all code that uses this struct to use a struct that alligns with the new database structure and functions. type Post struct { ID int `json:"no"` ParentID int `json:"resto"` @@ -426,6 +428,8 @@ type MessagePostContainer struct { Message string } +// Deprecated. Struct was made for use with old database, deprecated since refactor of april 2020. +// Please refactor all code that uses this struct to use a struct that alligns with the new database structure and functions. type RecentPost struct { BoardName string BoardID int