migrations

package
v0.9.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(x *xorm.Engine) error

Migrate database to current version

Types

type Migration added in v0.6.0

type Migration interface {
	Description() string
	Migrate(*xorm.Engine) error
}

func NewMigration added in v0.6.0

func NewMigration(desc string, fn func(*xorm.Engine) error) Migration

type TAccessToken added in v0.9.13

type TAccessToken struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
	UpdatedUnix int64
}

func (*TAccessToken) TableName added in v0.9.13

func (t *TAccessToken) TableName() string

type TAction added in v0.9.13

type TAction struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
}

func (*TAction) TableName added in v0.9.13

func (t *TAction) TableName() string

type TAttachment added in v0.9.13

type TAttachment struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
}

func (*TAttachment) TableName added in v0.9.13

func (t *TAttachment) TableName() string

type TComment added in v0.9.13

type TComment struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
}

func (*TComment) TableName added in v0.9.13

func (t *TComment) TableName() string

type TDeployKey added in v0.9.13

type TDeployKey struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
	UpdatedUnix int64
}

func (*TDeployKey) TableName added in v0.9.13

func (t *TDeployKey) TableName() string

type TIssue added in v0.9.13

type TIssue struct {
	ID           int64 `xorm:"pk autoincr"`
	DeadlineUnix int64
	CreatedUnix  int64
	UpdatedUnix  int64
}

func (*TIssue) TableName added in v0.9.13

func (t *TIssue) TableName() string

type TLoginSource added in v0.9.13

type TLoginSource struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
	UpdatedUnix int64
}

func (*TLoginSource) TableName added in v0.9.13

func (t *TLoginSource) TableName() string

type TMilestone added in v0.9.13

type TMilestone struct {
	ID             int64 `xorm:"pk autoincr"`
	DeadlineUnix   int64
	ClosedDateUnix int64
}

func (*TMilestone) TableName added in v0.9.13

func (t *TMilestone) TableName() string

type TMirror added in v0.9.13

type TMirror struct {
	ID             int64 `xorm:"pk autoincr"`
	UpdatedUnix    int64
	NextUpdateUnix int64
}

func (*TMirror) TableName added in v0.9.13

func (t *TMirror) TableName() string

type TNotice added in v0.9.13

type TNotice struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
}

func (*TNotice) TableName added in v0.9.13

func (t *TNotice) TableName() string

type TPublicKey added in v0.9.13

type TPublicKey struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
	UpdatedUnix int64
}

func (*TPublicKey) TableName added in v0.9.13

func (t *TPublicKey) TableName() string

type TPull added in v0.9.13

type TPull struct {
	ID         int64 `xorm:"pk autoincr"`
	MergedUnix int64
}

func (*TPull) TableName added in v0.9.13

func (t *TPull) TableName() string

type TRelease added in v0.9.13

type TRelease struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
}

func (*TRelease) TableName added in v0.9.13

func (t *TRelease) TableName() string

type TRepo added in v0.9.13

type TRepo struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
	UpdatedUnix int64
}

func (*TRepo) TableName added in v0.9.13

func (t *TRepo) TableName() string

type TUser added in v0.9.13

type TUser struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
	UpdatedUnix int64
}

func (*TUser) TableName added in v0.9.13

func (t *TUser) TableName() string

type TWebhook added in v0.9.13

type TWebhook struct {
	ID          int64 `xorm:"pk autoincr"`
	CreatedUnix int64
	UpdatedUnix int64
}

func (*TWebhook) TableName added in v0.9.13

func (t *TWebhook) TableName() string

type Version

type Version struct {
	ID      int64 `xorm:"pk autoincr"`
	Version int64
}

The version table. Should have only one row with id==1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL