package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Jan 5, 2017
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Migrate database to current version
Migration describes on migration from lower version to high version
NewMigration creates a new migration
type TAccessToken struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
TAccessToken defines the struct for migrating table access_token
TableName will be invoked by XORM to customrize the table name
type TAction struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
}
TAction defines the struct for migrating table action
TableName will be invoked by XORM to customrize the table name
type TAttachment struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
}
TAttachment defines the struct for migrating table attachment
TableName will be invoked by XORM to customrize the table name
TComment defines the struct for migrating table comment
TableName will be invoked by XORM to customrize the table name
type TDeployKey struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
TDeployKey defines the struct for migrating table deploy_key
TableName will be invoked by XORM to customrize the table name
type TIssue struct {
ID int64 `xorm:"pk autoincr"`
DeadlineUnix int64
CreatedUnix int64
UpdatedUnix int64
}
TIssue defines the struct for migrating table issue
TableName will be invoked by XORM to customrize the table name
type TLoginSource struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
TLoginSource defines the struct for migrating table login_source
TableName will be invoked by XORM to customrize the table name
type TMilestone struct {
ID int64 `xorm:"pk autoincr"`
DeadlineUnix int64
ClosedDateUnix int64
}
TMilestone defines the struct for migrating table milestone
TableName will be invoked by XORM to customrize the table name
type TMirror struct {
ID int64 `xorm:"pk autoincr"`
UpdatedUnix int64
NextUpdateUnix int64
}
TMirror defines the struct for migrating table mirror
TableName will be invoked by XORM to customrize the table name
type TNotice struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
}
TNotice defines the struct for migrating table notice
TableName will be invoked by XORM to customrize the table name
type TPublicKey struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
TPublicKey defines the struct for migrating table public_key
TableName will be invoked by XORM to customrize the table name
type TPull struct {
ID int64 `xorm:"pk autoincr"`
MergedUnix int64
}
TPull defines the struct for migrating table pull_request
TableName will be invoked by XORM to customrize the table name
type TRelease struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
}
TRelease defines the struct for migrating table release
TableName will be invoked by XORM to customrize the table name
type TRepo struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
TRepo defines the struct for migrating table repository
TableName will be invoked by XORM to customrize the table name
type TUser struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
TUser defines the struct for migrating table user
TableName will be invoked by XORM to customrize the table name
type TWebhook struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
TWebhook defines the struct for migrating table webhook
TableName will be invoked by XORM to customrize the table name
type UserV14 struct {
DiffViewStyle string `xorm:"NOT NULL DEFAULT ''"`
}
UserV14 describes the added fields for migrating from v13 -> v14
TableName will be invoked by XORM to customrize the table name
type Version struct {
ID int64 `xorm:"pk autoincr"`
Version int64
}
Version describes the version table. Should have only one row with id==1
Source Files
¶
Click to show internal directories.
Click to hide internal directories.