mirror of https://gitee.com/answerdev/answer.git
feat: tag add user id
This commit is contained in:
parent
e54ebacc22
commit
381c61d312
|
@ -95,5 +95,8 @@ func addActivityTimeline(x *xorm.Engine) error {
|
||||||
RevisionID int64 `xorm:"not null default 0 BIGINT(20) revision_id"`
|
RevisionID int64 `xorm:"not null default 0 BIGINT(20) revision_id"`
|
||||||
OriginalObjectID string `xorm:"not null default 0 BIGINT(20) original_object_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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue