migrations

package
v0.9.97 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 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

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

func NewMigration

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

type TAccessToken

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

func (*TAccessToken) TableName

func (t *TAccessToken) TableName() string

type TAction

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

func (*TAction) TableName

func (t *TAction) TableName() string

type TAttachment

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

func (*TAttachment) TableName

func (t *TAttachment) TableName() string

type TComment

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

func (*TComment) TableName

func (t *TComment) TableName() string

type TDeployKey

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

func (*TDeployKey) TableName

func (t *TDeployKey) TableName() string

type TIssue

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

func (*TIssue) TableName

func (t *TIssue) TableName() string

type TLoginSource

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

func (*TLoginSource) TableName

func (t *TLoginSource) TableName() string

type TMilestone

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

func (*TMilestone) TableName

func (t *TMilestone) TableName() string

type TMirror

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

func (*TMirror) TableName

func (t *TMirror) TableName() string

type TNotice

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

func (*TNotice) TableName

func (t *TNotice) TableName() string

type TPublicKey

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

func (*TPublicKey) TableName

func (t *TPublicKey) TableName() string

type TPull

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

func (*TPull) TableName

func (t *TPull) TableName() string

type TRelease

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

func (*TRelease) TableName

func (t *TRelease) TableName() string

type TRepo

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

func (*TRepo) TableName

func (t *TRepo) TableName() string

type TUser

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

func (*TUser) TableName

func (t *TUser) TableName() string

type TWebhook

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

func (*TWebhook) TableName

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