Skip to content

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.

feat: tag add user id

LinkinStar381c61d3120c
diff --git a/internal/migrations/v3.go b/internal/migrations/v3.go
index 651b6dd0..0f955e8d 100644
--- a/internal/migrations/v3.go
+++ b/internal/migrations/v3.go
@@ -95,5 +95,8 @@ func addActivityTimeline(x *xorm.Engine) error {
RevisionID int64 `xorm:"not null default 0 BIGINT(20) revision_id"`
OriginalObjectID string `xorm:"not null default 0 BIGINT(20) original_object_id"`
}
- return x.Sync(new(Activity), new(Revision))
+ type Tag struct {
+ UserID string `xorm:"not null default 0 BIGINT(20) user_id"`
+ }
+ return x.Sync(new(Activity), new(Revision), new(Tag))
}