Skip to content

Commit ff997cb

Browse files
maishivamhoo123LinkinStars
authored andcommitted
fix: update migration version to v2.0.1 and remove default value for TEXT column
1 parent 09599e4 commit ff997cb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/entity/user_entity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type User struct {
6060
Status int `xorm:"not null default 1 INT(11) status"`
6161
AuthorityGroup int `xorm:"not null default 1 INT(11) authority_group"`
6262
DisplayName string `xorm:"not null default '' VARCHAR(30) display_name"`
63-
Avatar string `xorm:"not null default '' TEXT avatar"`
63+
Avatar string `xorm:"not null TEXT avatar"`
6464
Mobile string `xorm:"not null VARCHAR(20) mobile"`
6565
Bio string `xorm:"not null TEXT bio"`
6666
BioHTML string `xorm:"not null TEXT bio_html"`

internal/migrations/migrations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var migrations = []Migration{
107107
NewMigration("v1.7.2", "expand avatar column length", expandAvatarColumnLength, false),
108108
NewMigration("v1.8.0", "change admin menu", updateAdminMenuSettings, true),
109109
NewMigration("v1.8.1", "ai feat", aiFeat, true),
110-
NewMigration("v1.8.2", "change avatar type to text", updateAvatarType, false),
110+
NewMigration("v2.0.1", "change avatar type to text", updateAvatarType, false),
111111
}
112112

113113
func GetMigrations() []Migration {

0 commit comments

Comments
 (0)