mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-30 05:46:09 +01:00
e81ccc406b
Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
36 lines
655 B
Go
36 lines
655 B
Go
// Copyright 2019 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_10 //nolint
|
|
|
|
import "xorm.io/xorm"
|
|
|
|
func AddOriginalMigrationInfo(x *xorm.Engine) error {
|
|
// Issue see models/issue.go
|
|
type Issue struct {
|
|
OriginalAuthor string
|
|
OriginalAuthorID int64
|
|
}
|
|
|
|
if err := x.Sync2(new(Issue)); err != nil {
|
|
return err
|
|
}
|
|
|
|
// Issue see models/issue_comment.go
|
|
type Comment struct {
|
|
OriginalAuthor string
|
|
OriginalAuthorID int64
|
|
}
|
|
|
|
if err := x.Sync2(new(Comment)); err != nil {
|
|
return err
|
|
}
|
|
|
|
// Issue see models/repo.go
|
|
type Repository struct {
|
|
OriginalURL string
|
|
}
|
|
|
|
return x.Sync2(new(Repository))
|
|
}
|