gitea: Index | Files

package migrations

import ""


Package Files

migrations.go v100.go v101.go v102.go v103.go v104.go v105.go v106.go v107.go v108.go v109.go v110.go v111.go v112.go v113.go v114.go v115.go v116.go v117.go v118.go v119.go v120.go v121.go v122.go v123.go v124.go v125.go v126.go v127.go v70.go v71.go v72.go v73.go v74.go v75.go v76.go v77.go v78.go v79.go v80.go v81.go v82.go v83.go v84.go v85.go v86.go v87.go v88.go v89.go v90.go v91.go v92.go v93.go v94.go v95.go v96.go v97.go v98.go v99.go

func Migrate Uses

func Migrate(x *xorm.Engine) error

Migrate database to current version

type Migration Uses

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

Migration describes on migration from lower version to high version

func NewMigration Uses

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

NewMigration creates a new migration

type RepoWatchMode Uses

type RepoWatchMode int8

RepoWatchMode specifies what kind of watch the user has on a repository

type Version Uses

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

Version describes the version table. Should have only one row with id==1

type Watch Uses

type Watch struct {
    ID   int64         `xorm:"pk autoincr"`
    Mode RepoWatchMode `xorm:"SMALLINT NOT NULL DEFAULT 1"`

Watch is connection request for receiving repository notification.

Package migrations imports 22 packages (graph) and is imported by 26 packages. Updated 2020-02-16. Refresh now. Tools for package owners.