A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: remove updated
LinkinStarf631cd0e8dee
diff --git a/internal/entity/answer_entity.go b/internal/entity/answer_entity.goindex 82a85a74..faf54801 100644--- a/internal/entity/answer_entity.go+++ b/internal/entity/answer_entity.go@@ -20,7 +20,7 @@ var CmsAnswerSearchStatus = map[string]int{type Answer struct {ID string `xorm:"not null pk autoincr comment('answer id') BIGINT(20) id"`CreatedAt time.Time `xorm:"created not null default CURRENT_TIMESTAMP TIMESTAMP created_at"`- UpdatedAt time.Time `xorm:"updated not null default CURRENT_TIMESTAMP TIMESTAMP updated_at"`+ UpdatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP TIMESTAMP updated_at"`QuestionID string `xorm:"not null default 0 comment('question id') BIGINT(20) question_id"`UserID string `xorm:"not null default 0 comment('answer user id') BIGINT(20) user_id"`OriginalText string `xorm:"not null comment('original content') MEDIUMTEXT original_text"`diff --git a/internal/entity/question_entity.go b/internal/entity/question_entity.goindex 1de02453..4fc47440 100644--- a/internal/entity/question_entity.go+++ b/internal/entity/question_entity.go@@ -24,6 +24,8 @@ type QuestionTag struct {// Question questiontype Question struct {ID string `xorm:"not null pk comment('question id') BIGINT(20) id"`+ CreatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('create time') TIMESTAMP created_at"`+ UpdatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('update time') TIMESTAMP updated_at"`UserID string `xorm:"not null default 0 comment('user id') BIGINT(20) user_id"`Title string `xorm:"not null default '' comment('question title') VARCHAR(255) title"`OriginalText string `xorm:"not null comment('original content') MEDIUMTEXT original_text"`@@ -37,8 +39,6 @@ type Question struct {FollowCount int `xorm:"not null default 0 comment('follow count') INT(11) follow_count"`AcceptedAnswerID string `xorm:"not null default 0 comment('accepted answer id') BIGINT(20) accepted_answer_id"`LastAnswerID string `xorm:"not null default 0 comment('last answer id') BIGINT(20) last_answer_id"`- CreatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('create time') TIMESTAMP created_at"`- UpdatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('update time') TIMESTAMP updated_at"`PostUpdateTime time.Time `xorm:"default CURRENT_TIMESTAMP comment('answer the last update time') TIMESTAMP post_update_time"`RevisionID string `xorm:"not null default 0 BIGINT(20) revision_id"`}