mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-08 12:27:44 +00:00
ac49dbe1a2
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
20 lines
386 B
Go
20 lines
386 B
Go
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_12
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitea.dev/modelmigration/base"
|
|
)
|
|
|
|
func AddReactionOriginals(_ context.Context, x base.EngineMigration) error {
|
|
type Reaction struct {
|
|
OriginalAuthorID int64 `xorm:"INDEX NOT NULL DEFAULT(0)"`
|
|
OriginalAuthor string
|
|
}
|
|
|
|
return x.Sync(new(Reaction))
|
|
}
|