Documentation
¶
Index ¶
- Constants
- func Migrate(x *xorm.Engine) error
- type ExternalLoginUser
- type Migration
- type Repo
- type RepoUnit
- type TAccessToken
- type TAction
- type TAttachment
- type TComment
- type TDeployKey
- type TIssue
- type TLoginSource
- type TMilestone
- type TMirror
- type TNotice
- type TPublicKey
- type TPull
- type TRelease
- type TRepo
- type TUser
- type TWebhook
- type UserV14
- type UserV15
- type Version
Constants ¶
const ( UnitTypeCode = iota + 1 // 1 code UnitTypeIssues // 2 issues UnitTypePRs // 3 PRs UnitTypeCommits // 4 Commits UnitTypeReleases // 5 Releases UnitTypeWiki // 6 Wiki UnitTypeSettings // 7 Settings UnitTypeExternalWiki // 8 ExternalWiki UnitTypeExternalTracker // 9 ExternalTracker )
Enumerate all the unit types
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExternalLoginUser ¶ added in v1.1.0
type ExternalLoginUser struct {
ExternalID string `xorm:"NOT NULL"`
UserID int64 `xorm:"NOT NULL"`
LoginSourceID int64 `xorm:"NOT NULL"`
}
ExternalLoginUser makes the connecting between some existing user and additional external login sources
type Repo ¶ added in v1.1.0
type Repo struct {
ID int64
EnableWiki, EnableExternalWiki, EnableIssues, EnableExternalTracker, EnablePulls bool
ExternalWikiURL, ExternalTrackerURL, ExternalTrackerFormat, ExternalTrackerStyle string
}
Repo describes a repository
type RepoUnit ¶ added in v1.1.0
type RepoUnit struct {
ID int64
RepoID int64 `xorm:"INDEX(s)"`
Type int `xorm:"INDEX(s)"`
Index int
Config map[string]string `xorm:"JSON"`
CreatedUnix int64 `xorm:"INDEX CREATED"`
Created time.Time `xorm:"-"`
}
RepoUnit describes all units of a repository
type TAccessToken ¶
TAccessToken defines the struct for migrating table access_token
func (*TAccessToken) TableName ¶
func (t *TAccessToken) TableName() string
TableName will be invoked by XORM to customrize the table name
type TAttachment ¶
TAttachment defines the struct for migrating table attachment
func (*TAttachment) TableName ¶
func (t *TAttachment) TableName() string
TableName will be invoked by XORM to customrize the table name
type TDeployKey ¶
TDeployKey defines the struct for migrating table deploy_key
func (*TDeployKey) TableName ¶
func (t *TDeployKey) TableName() string
TableName will be invoked by XORM to customrize the table name
type TIssue ¶
type TIssue struct {
ID int64 `xorm:"pk autoincr"`
DeadlineUnix int64
CreatedUnix int64
UpdatedUnix int64
}
TIssue defines the struct for migrating table issue
type TLoginSource ¶
TLoginSource defines the struct for migrating table login_source
func (*TLoginSource) TableName ¶
func (t *TLoginSource) TableName() string
TableName will be invoked by XORM to customrize the table name
type TMilestone ¶
TMilestone defines the struct for migrating table milestone
func (*TMilestone) TableName ¶
func (t *TMilestone) TableName() string
TableName will be invoked by XORM to customrize the table name
type TPublicKey ¶
TPublicKey defines the struct for migrating table public_key
func (*TPublicKey) TableName ¶
func (t *TPublicKey) TableName() string
TableName will be invoked by XORM to customrize the table name
type UserV14 ¶ added in v1.0.0
type UserV14 struct {
DiffViewStyle string `xorm:"NOT NULL DEFAULT ''"`
}
UserV14 describes the added fields for migrating from v13 -> v14