mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-17 05:25:08 +01:00
35 lines
948 B
Go
35 lines
948 B
Go
// Copyright 2025 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_24 //nolint
|
|
|
|
import (
|
|
<<<<<<< HEAD
|
|
"code.gitea.io/gitea/modules/timeutil"
|
|
=======
|
|
"code.gitea.io/gitea/models/perm"
|
|
>>>>>>> main
|
|
|
|
"xorm.io/xorm"
|
|
)
|
|
|
|
<<<<<<< HEAD
|
|
func CreateTableIssueDevLink(x *xorm.Engine) error {
|
|
type IssueDevLink struct {
|
|
ID int64 `xorm:"pk autoincr"`
|
|
IssueID int64 `xorm:"INDEX"`
|
|
LinkType int
|
|
LinkedRepoID int64 `xorm:"INDEX"` // it can link to self repo or other repo
|
|
LinkIndex string // branch name, pull request number or commit sha
|
|
CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
|
|
}
|
|
return x.Sync(new(IssueDevLink))
|
|
=======
|
|
func AddRepoUnitAnonymousAccessMode(x *xorm.Engine) error {
|
|
type RepoUnit struct { //revive:disable-line:exported
|
|
AnonymousAccessMode perm.AccessMode `xorm:"NOT NULL DEFAULT 0"`
|
|
}
|
|
return x.Sync(&RepoUnit{})
|
|
>>>>>>> main
|
|
}
|