This is an automated email from the ASF dual-hosted git repository. linkinstar pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/answer.git
commit ff997cb0142fc8f1943a726a86ea1a514d57e044 Author: maishivamhoo123 <[email protected]> AuthorDate: Mon Feb 9 12:27:17 2026 +0530 fix: update migration version to v2.0.1 and remove default value for TEXT column --- internal/entity/user_entity.go | 2 +- internal/migrations/migrations.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/entity/user_entity.go b/internal/entity/user_entity.go index 5e9eed18..8aac4c7c 100644 --- a/internal/entity/user_entity.go +++ b/internal/entity/user_entity.go @@ -60,7 +60,7 @@ type User struct { Status int `xorm:"not null default 1 INT(11) status"` AuthorityGroup int `xorm:"not null default 1 INT(11) authority_group"` DisplayName string `xorm:"not null default '' VARCHAR(30) display_name"` - Avatar string `xorm:"not null default '' TEXT avatar"` + Avatar string `xorm:"not null TEXT avatar"` Mobile string `xorm:"not null VARCHAR(20) mobile"` Bio string `xorm:"not null TEXT bio"` BioHTML string `xorm:"not null TEXT bio_html"` diff --git a/internal/migrations/migrations.go b/internal/migrations/migrations.go index a1393955..682a7b20 100644 --- a/internal/migrations/migrations.go +++ b/internal/migrations/migrations.go @@ -107,7 +107,7 @@ var migrations = []Migration{ NewMigration("v1.7.2", "expand avatar column length", expandAvatarColumnLength, false), NewMigration("v1.8.0", "change admin menu", updateAdminMenuSettings, true), NewMigration("v1.8.1", "ai feat", aiFeat, true), - NewMigration("v1.8.2", "change avatar type to text", updateAvatarType, false), + NewMigration("v2.0.1", "change avatar type to text", updateAvatarType, false), } func GetMigrations() []Migration {
