Skip to content

Commit c69997a

Browse files
committed
don't use nullzero on bool columns
1 parent 987eea6 commit c69997a

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎entries/dao_coin_limit_order.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type DaoCoinLimitOrderEntry struct {
1919
OperationType uint8 `bun:",nullzero"`
2020
FillType uint8 `bun:",nullzero"`
2121
BlockHeight uint32 `bun:",nullzero"`
22-
IsDaoCoinConst bool `bun:",nullzero"`
22+
IsDaoCoinConst bool
2323
BadgerKey []byte `pg:",pk,use_zero"`
2424
}
2525

‎entries/new_message.go‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import (
1111
)
1212

1313
type NewMessageEntry struct {
14-
SenderAccessGroupOwnerPublicKey string `bun:",nullzero"`
15-
SenderAccessGroupKeyName string `bun:",nullzero"`
16-
SenderAccessGroupPublicKey string `bun:",nullzero"`
17-
RecipientAccessGroupOwnerPublicKey string `bun:",nullzero"`
18-
RecipientAccessGroupKeyName string `bun:",nullzero"`
19-
RecipientAccessGroupPublicKey string `bun:",nullzero"`
20-
EncryptedText string `pg:",use_zero"`
21-
IsGroupChatMessage bool `bun:",nullzero"`
14+
SenderAccessGroupOwnerPublicKey string `bun:",nullzero"`
15+
SenderAccessGroupKeyName string `bun:",nullzero"`
16+
SenderAccessGroupPublicKey string `bun:",nullzero"`
17+
RecipientAccessGroupOwnerPublicKey string `bun:",nullzero"`
18+
RecipientAccessGroupKeyName string `bun:",nullzero"`
19+
RecipientAccessGroupPublicKey string `bun:",nullzero"`
20+
EncryptedText string `pg:",use_zero"`
21+
IsGroupChatMessage bool
2222
Timestamp time.Time `pg:",use_zero"`
2323

2424
ExtraData map[string]string `bun:"type:jsonb"`

0 commit comments

Comments
 (0)