Documentation
¶
Index ¶
- Constants
- func Migrate(x *xorm.Engine) error
- type CommitStatus
- type ExternalLoginUser
- type Migration
- type ReleaseV39
- 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 Team
- type UserOpenID
- type UserV14
- type Version
Constants ¶
const ( V16UnitTypeCode = iota + 1 // 1 code V16UnitTypeIssues // 2 issues V16UnitTypePRs // 3 PRs V16UnitTypeCommits // 4 Commits V16UnitTypeReleases // 5 Releases V16UnitTypeWiki // 6 Wiki V16UnitTypeSettings // 7 Settings V16UnitTypeExternalWiki // 8 ExternalWiki V16UnitTypeExternalTracker // 9 ExternalTracker )
Enumerate all the unit types
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommitStatus ¶ added in v1.2.0
type CommitStatus struct {
ID int64 `xorm:"pk autoincr"`
Index int64 `xorm:"INDEX UNIQUE(repo_sha_index)"`
RepoID int64 `xorm:"INDEX UNIQUE(repo_sha_index)"`
State string `xorm:"VARCHAR(7) NOT NULL"`
SHA string `xorm:"VARCHAR(64) NOT NULL INDEX UNIQUE(repo_sha_index)"`
TargetURL string `xorm:"TEXT"`
Description string `xorm:"TEXT"`
Context string `xorm:"TEXT"`
CreatorID int64 `xorm:"INDEX"`
CreatedUnix int64 `xorm:"INDEX"`
UpdatedUnix int64 `xorm:"INDEX"`
}
CommitStatus see models/status.go
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 ReleaseV39 ¶ added in v1.2.0
type ReleaseV39 struct {
IsTag bool `xorm:"NOT NULL DEFAULT false"`
}
ReleaseV39 describes the added field for Release
func (*ReleaseV39) TableName ¶ added in v1.2.0
func (*ReleaseV39) TableName() string
TableName will be invoked by XORM to customrize the table name
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 Team ¶ added in v1.2.0
type Team struct {
UnitTypes []int `xorm:"json"`
}
Team see models/team.go
type UserOpenID ¶ added in v1.2.0
type UserOpenID struct {
ID int64 `xorm:"pk autoincr"`
UID int64 `xorm:"INDEX NOT NULL"`
URI string `xorm:"UNIQUE NOT NULL"`
}
UserOpenID is the list of all OpenID identities of a user.