ensure ,notnull,nullzero on all columns with default values

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
This commit is contained in:
kim (grufwub) 2021-08-26 20:11:15 +01:00
commit 77a578528f
8 changed files with 19 additions and 19 deletions

View file

@ -138,11 +138,11 @@ const (
// If DIRECT is selected, boostable will be FALSE, and all other flags will be TRUE.
type VisibilityAdvanced struct {
// This status will be federated beyond the local timeline(s)
Federated bool `bun:"default:true"`
Federated bool `bun:",nullzero,notnull,default:true"`
// This status can be boosted/reblogged
Boostable bool `bun:"default:true"`
Boostable bool `bun:",nullzero,notnull,default:true"`
// This status can be replied to
Replyable bool `bun:"default:true"`
Replyable bool `bun:",nullzero,notnull,default:true"`
// This status can be liked/faved
Likeable bool `bun:"default:true"`
Likeable bool `bun:",nullzero,notnull,default:true"`
}