migrationscripts

package
v0.11.0-test3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubPullRequest20220509

type GithubPullRequest20220509 struct {
	GithubId        int    `gorm:"primaryKey"`
	RepoId          int    `gorm:"index"`
	Number          int    `gorm:"index"` // This number is used in GET requests to the API associated to reviewers / comments / etc.
	State           string `gorm:"type:varchar(255)"`
	Title           string `gorm:"type:varchar(255)"`
	GithubCreatedAt time.Time
	GithubUpdatedAt time.Time `gorm:"index"`
	ClosedAt        *time.Time
	// In order to get the following fields, we need to collect PRs individually from GitHub
	Additions      int
	Deletions      int
	Comments       int
	Commits        int
	ReviewComments int
	Merged         bool
	MergedAt       *time.Time
	Body           string
	Type           string `gorm:"type:varchar(255)"`
	Component      string `gorm:"type:varchar(255)"`
	MergeCommitSha string `gorm:"type:varchar(40)"`
	HeadRef        string `gorm:"type:varchar(255)"`
	BaseRef        string `gorm:"type:varchar(255)"`
	BaseCommitSha  string `gorm:"type:varchar(255)"`
	HeadCommitSha  string `gorm:"type:varchar(255)"`
	Url            string `gorm:"type:varchar(255)"`
	AuthorName     string `gorm:"type:varchar(100)"`
	AuthorId       int
	archived.NoPKModel
}

func (GithubPullRequest20220509) TableName

func (GithubPullRequest20220509) TableName() string

type InitSchemas

type InitSchemas struct{}

func (*InitSchemas) Name

func (*InitSchemas) Name() string

func (*InitSchemas) Up

func (*InitSchemas) Up(ctx context.Context, db *gorm.DB) error

func (*InitSchemas) Version

func (*InitSchemas) Version() uint64

type UpdateSchemas20220509

type UpdateSchemas20220509 struct{}

func (*UpdateSchemas20220509) Name

func (*UpdateSchemas20220509) Name() string

func (*UpdateSchemas20220509) Owner

func (*UpdateSchemas20220509) Owner() string

func (*UpdateSchemas20220509) Up

func (*UpdateSchemas20220509) Version

func (*UpdateSchemas20220509) Version() uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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