1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-26 10:36:23 -07:00

Add is_secure_tripcode column to posts and update gochan-migration to add it

This commit is contained in:
Eggbertx 2025-04-06 15:08:46 -07:00
parent ffac903eb5
commit 4c0ce122ad
16 changed files with 182 additions and 90 deletions

View file

@ -201,24 +201,25 @@ type IPBanAppealAudit struct {
// table: DBPREFIXposts
type Post struct {
ID int `json:"no"` // sql: id
ThreadID int `json:"-"` // sql: thread_id
IsTopPost bool `json:"-"` // sql: is_top_post
IP string `json:"-"` // sql: ip
CreatedOn time.Time `json:"time"` // sql: created_on
Name string `json:"name"` // sql: name
Tripcode string `json:"trip"` // sql: tripcode
IsRoleSignature bool `json:"-"` // sql: is_role_signature
Email string `json:"email"` // sql: email
Subject string `json:"sub"` // sql: subject
Message template.HTML `json:"-"` // sql: message
MessageRaw string `json:"com"` // sql: message_raw
Password string `json:"-"` // sql: `password`
DeletedAt time.Time `json:"-"` // sql: deleted_at
IsDeleted bool `json:"-"` // sql: is_deleted
BannedMessage string `json:"-"` // sql: banned_message
Flag string `json:"-"` // sql: flag
Country string `json:"-"` // sql: country
ID int `json:"no"` // sql: id
ThreadID int `json:"-"` // sql: thread_id
IsTopPost bool `json:"-"` // sql: is_top_post
IP string `json:"-"` // sql: ip
CreatedOn time.Time `json:"time"` // sql: created_on
Name string `json:"name"` // sql: name
Tripcode string `json:"trip"` // sql: tripcode
IsSecureTripcode bool `json:"-"` // sql: is_secure_tripcode
IsRoleSignature bool `json:"-"` // sql: is_role_signature
Email string `json:"email"` // sql: email
Subject string `json:"sub"` // sql: subject
Message template.HTML `json:"-"` // sql: message
MessageRaw string `json:"com"` // sql: message_raw
Password string `json:"-"` // sql: `password`
DeletedAt time.Time `json:"-"` // sql: deleted_at
IsDeleted bool `json:"-"` // sql: is_deleted
BannedMessage string `json:"-"` // sql: banned_message
Flag string `json:"-"` // sql: flag
Country string `json:"-"` // sql: country
// used for convenience to avoid needing to do multiple queries
opID int