{"modulePath":"github.com/stackdocker/gogs","version":"v0.9.13","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package migrations\n\n## Functions\n\n```go\nfunc Migrate(x *xorm.Engine) error\n```\nMigrate database to current version\n\n## Types\n\n```go\ntype Migration interface {\n\tDescription() string\n\tMigrate(*xorm.Engine) error\n}\n```\n\n```go\nfunc NewMigration(desc string, fn func(*xorm.Engine) error) Migration\n```\n\n```go\ntype TAccessToken struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n\tUpdatedUnix int64\n}\n```\n\n```go\nfunc (t *TAccessToken) TableName() string\n```\n\n```go\ntype TAction struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n}\n```\n\n```go\nfunc (t *TAction) TableName() string\n```\n\n```go\ntype TAttachment struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n}\n```\n\n```go\nfunc (t *TAttachment) TableName() string\n```\n\n```go\ntype TComment struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n}\n```\n\n```go\nfunc (t *TComment) TableName() string\n```\n\n```go\ntype TDeployKey struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n\tUpdatedUnix int64\n}\n```\n\n```go\nfunc (t *TDeployKey) TableName() string\n```\n\n```go\ntype TIssue struct {\n\tID           int64 `xorm:\"pk autoincr\"`\n\tDeadlineUnix int64\n\tCreatedUnix  int64\n\tUpdatedUnix  int64\n}\n```\n\n```go\nfunc (t *TIssue) TableName() string\n```\n\n```go\ntype TLoginSource struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n\tUpdatedUnix int64\n}\n```\n\n```go\nfunc (t *TLoginSource) TableName() string\n```\n\n```go\ntype TMilestone struct {\n\tID             int64 `xorm:\"pk autoincr\"`\n\tDeadlineUnix   int64\n\tClosedDateUnix int64\n}\n```\n\n```go\nfunc (t *TMilestone) TableName() string\n```\n\n```go\ntype TMirror struct {\n\tID             int64 `xorm:\"pk autoincr\"`\n\tUpdatedUnix    int64\n\tNextUpdateUnix int64\n}\n```\n\n```go\nfunc (t *TMirror) TableName() string\n```\n\n```go\ntype TNotice struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n}\n```\n\n```go\nfunc (t *TNotice) TableName() string\n```\n\n```go\ntype TPublicKey struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n\tUpdatedUnix int64\n}\n```\n\n```go\nfunc (t *TPublicKey) TableName() string\n```\n\n```go\ntype TPull struct {\n\tID         int64 `xorm:\"pk autoincr\"`\n\tMergedUnix int64\n}\n```\n\n```go\nfunc (t *TPull) TableName() string\n```\n\n```go\ntype TRelease struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n}\n```\n\n```go\nfunc (t *TRelease) TableName() string\n```\n\n```go\ntype TRepo struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n\tUpdatedUnix int64\n}\n```\n\n```go\nfunc (t *TRepo) TableName() string\n```\n\n```go\ntype TUser struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n\tUpdatedUnix int64\n}\n```\n\n```go\nfunc (t *TUser) TableName() string\n```\n\n```go\ntype TWebhook struct {\n\tID          int64 `xorm:\"pk autoincr\"`\n\tCreatedUnix int64\n\tUpdatedUnix int64\n}\n```\n\n```go\nfunc (t *TWebhook) TableName() string\n```\n\n```go\ntype Version struct {\n\tId      int64\n\tVersion int64\n}\n```\nThe version table. Should have only one row with id==1\n\n","path":"github.com/stackdocker/gogs/models/migrations","name":"migrations","synopsis":"","isRedistributable":true}
