Skip to content

Commit c1a728c

Browse files
committed
add default value for newly added columns
1 parent 46ff0ec commit c1a728c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/models/transaction_tag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type TransactionTag struct {
55
TagId int64 `xorm:"PK"`
66
Uid int64 `xorm:"INDEX(IDX_tag_uid_deleted_group_order) NOT NULL"`
77
Deleted bool `xorm:"INDEX(IDX_tag_uid_deleted_group_order) NOT NULL"`
8-
TagGroupId int64 `xorm:"INDEX(IDX_tag_uid_deleted_group_order) NOT NULL"`
8+
TagGroupId int64 `xorm:"INDEX(IDX_tag_uid_deleted_group_order) NOT NULL DEFAULT 0"`
99
Name string `xorm:"VARCHAR(64) NOT NULL"`
1010
DisplayOrder int32 `xorm:"INDEX(IDX_tag_uid_deleted_group_order) NOT NULL"`
1111
Hidden bool `xorm:"NOT NULL"`

0 commit comments

Comments
 (0)