migrationscripts

package
v0.14.5-zentao-beta2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All added in v0.12.0

func All() []migration.Script

All return all the migration scripts of framework

Types

type Blueprint20220616 added in v0.12.0

type Blueprint20220616 struct {
	Mode     string `json:"mode" gorm:"varchar(20)" validate:"required,oneof=NORMAL ADVANCED"`
	IsManual bool   `json:"isManual"`
}

func (Blueprint20220616) TableName added in v0.12.0

func (Blueprint20220616) TableName() string

type BlueprintEncryption0904 added in v0.14.4

type BlueprintEncryption0904 struct {
	archived.Model
	Plan        string
	RawPlan     string
	Settings    string
	RawSettings string
}

func (BlueprintEncryption0904) TableName added in v0.14.4

func (BlueprintEncryption0904) TableName() string

type BoardRepo0913 added in v0.14.0

type BoardRepo0913 struct {
	archived.NoPKModel
}

func (BoardRepo0913) TableName added in v0.14.0

func (BoardRepo0913) TableName() string

type CICDPipeline added in v0.13.0

type CICDPipeline struct {
	archived.DomainEntity
	Name         string `gorm:"type:varchar(255)"`
	CommitSha    string `gorm:"type:varchar(255);index"`
	Branch       string `gorm:"type:varchar(255);index"`
	Repo         string `gorm:"type:varchar(255);index"`
	Result       string `gorm:"type:varchar(100)"`
	Status       string `gorm:"type:varchar(100)"`
	Type         string `gorm:"type:varchar(100);comment: to indicate this is CI or CD"`
	DurationSec  uint64
	CreatedDate  time.Time
	FinishedDate *time.Time
}

func (CICDPipeline) TableName added in v0.13.0

func (CICDPipeline) TableName() string

type CICDPipeline0829 added in v0.14.0

type CICDPipeline0829 struct {
	Environment string `gorm:"type:varchar(255)"`
}

func (CICDPipeline0829) TableName added in v0.14.0

func (CICDPipeline0829) TableName() string

type CICDPipeline0905 added in v0.14.0

type CICDPipeline0905 struct {
	CommitSha string `gorm:"type:varchar(255);index"`
	Branch    string `gorm:"type:varchar(255);index"`
	Repo      string `gorm:"type:varchar(255);index"`
}

func (CICDPipeline0905) TableName added in v0.14.0

func (CICDPipeline0905) TableName() string

type CICDPipelineRelationship0905 added in v0.14.0

type CICDPipelineRelationship0905 struct {
	ParentPipelineId string `gorm:"primaryKey;type:varchar(255)"`
	ChildPipelineId  string `gorm:"primaryKey;type:varchar(255)"`
	archived.NoPKModel
}

func (CICDPipelineRelationship0905) TableName added in v0.14.0

type CICDPipelineRepo added in v0.13.0

type CICDPipelineRepo struct {
	archived.DomainEntity
	CommitSha string `gorm:"primaryKey;type:varchar(255)"`
	Branch    string `gorm:"type:varchar(255)"`
	RepoUrl   string `gorm:"type:varchar(255)"`
}

func (CICDPipelineRepo) TableName added in v0.13.0

func (CICDPipelineRepo) TableName() string

type CICDPipelineRepo0905 added in v0.14.0

type CICDPipelineRepo0905 struct {
	RepoUrl string `gorm:"type:varchar(255)"`
}

func (CICDPipelineRepo0905) TableName added in v0.14.0

func (CICDPipelineRepo0905) TableName() string

type CICDTask added in v0.13.0

type CICDTask struct {
	archived.DomainEntity
	Name         string `gorm:"type:varchar(255)"`
	PipelineId   string `gorm:"index;type:varchar(255)"`
	Result       string `gorm:"type:varchar(100)"`
	Status       string `gorm:"type:varchar(100)"`
	Type         string `gorm:"type:varchar(100);comment: to indicate this is CI or CD"`
	DurationSec  uint64
	StartedDate  time.Time
	FinishedDate *time.Time
}

func (CICDTask) TableName added in v0.13.0

func (CICDTask) TableName() string

type CICDTask0905 added in v0.14.0

type CICDTask0905 struct {
	Environment string `gorm:"type:varchar(255)"`
}

func (CICDTask0905) TableName added in v0.14.0

func (CICDTask0905) TableName() string

type CiCDPipelineRepo0915 added in v0.14.0

type CiCDPipelineRepo0915 struct {
	archived.NoPKModel
	PipelineId string `gorm:"primaryKey;type:varchar(255)"`
	CommitSha  string `gorm:"primaryKey;type:varchar(255)"`
	Branch     string `gorm:"type:varchar(255)"`
	RepoId     string `gorm:"index;type:varchar(255)"`
	RepoUrl    string
}

func (CiCDPipelineRepo0915) TableName added in v0.14.0

func (CiCDPipelineRepo0915) TableName() string

type CiCDPipelineRepoOld added in v0.14.0

type CiCDPipelineRepoOld struct {
	archived.DomainEntity
	CommitSha string `gorm:"primaryKey;type:varchar(255)"`
	Branch    string `gorm:"type:varchar(255)"`
	Repo      string `gorm:"type:varchar(255)"`
}

func (CiCDPipelineRepoOld) TableName added in v0.14.0

func (CiCDPipelineRepoOld) TableName() string

type CommitFile added in v0.12.0

type CommitFile struct {
	archived.DomainEntity
	CommitSha string `gorm:"type:varchar(40)"`
	FilePath  string `gorm:"type:varchar(255)"`
	Additions int
	Deletions int
}

func (CommitFile) TableName added in v0.12.0

func (CommitFile) TableName() string

type CommitFileAddLength added in v0.14.0

type CommitFileAddLength struct {
	archived.DomainEntity
	CommitSha string `gorm:"type:varchar(40)"`
	FilePath  string `gorm:"type:text"`
	Additions int
	Deletions int
}

func (CommitFileAddLength) TableName added in v0.14.0

func (CommitFileAddLength) TableName() string

type CommitFileAddLengthBak added in v0.14.0

type CommitFileAddLengthBak struct {
	archived.DomainEntity
	CommitSha string `gorm:"type:varchar(40)"`
	FilePath  string `gorm:"type:varchar(255)"`
	Additions int
	Deletions int
}

func (CommitFileAddLengthBak) TableName added in v0.14.0

func (CommitFileAddLengthBak) TableName() string

type CommitFileComponent added in v0.12.0

type CommitFileComponent struct {
	archived.NoPKModel
	CommitFileId  string `gorm:"primaryKey;type:varchar(255)"`
	ComponentName string `gorm:"type:varchar(255)"`
}

func (CommitFileComponent) TableName added in v0.12.0

func (CommitFileComponent) TableName() string

type CommitFileComponentBak added in v0.14.0

type CommitFileComponentBak struct {
	archived.NoPKModel
	CommitFileId  string `gorm:"primaryKey;type:varchar(255)"`
	ComponentName string `gorm:"type:varchar(255)"`
}

func (CommitFileComponentBak) TableName added in v0.14.0

func (CommitFileComponentBak) TableName() string

type CommitLineChange added in v0.14.0

type CommitLineChange struct {
	domainlayer.DomainEntity
	Id          string `gorm:"type:varchar(255);primaryKey"`
	CommitSha   string `gorm:"type:varchar(40);"`
	NewFilePath string `gorm:"type:varchar(255);"`
	LineNoNew   int    `gorm:"type:int"`
	LineNoOld   int    `gorm:"type:int"`
	OldFilePath string `gorm:"type:varchar(255)"`
	HunkNum     int    `gorm:"type:int"`
	ChangedType string `gorm:"type:varchar(255)"`
	PrevCommit  string `gorm:"type:varchar(255)"`
}

func (CommitLineChange) TableName added in v0.14.0

func (CommitLineChange) TableName() string

type Component added in v0.12.0

type Component struct {
	RepoId    string `gorm:"type:varchar(255)"`
	Name      string `gorm:"primaryKey;type:varchar(255)"`
	PathRegex string `gorm:"type:varchar(255)"`
}

func (Component) TableName added in v0.12.0

func (Component) TableName() string

type Issue0829 added in v0.14.0

type Issue0829 struct {
	DeploymentId string `gorm:"type:varchar(255)"`
}

func (Issue0829) TableName added in v0.14.0

func (Issue0829) TableName() string

type PipelineEncryption0904 added in v0.14.4

type PipelineEncryption0904 struct {
	archived.Model
	Plan    string
	RawPlan string
}

func (PipelineEncryption0904) TableName added in v0.14.4

func (PipelineEncryption0904) TableName() string

type PullRequest0829 added in v0.14.0

type PullRequest0829 struct {
	CodingTimespan int64
	ReviewLag      int64
	ReviewTimespan int64
	DeployTimespan int64
	ChangeTimespan int64
}

func (PullRequest0829) TableName added in v0.14.0

func (PullRequest0829) TableName() string

type PullRequest0913 added in v0.14.0

type PullRequest0913 struct {
	OrigCodingTimespan int64
	OrigReviewLag      int64
	OrigReviewTimespan int64
	OrigDeployTimespan int64
}

func (PullRequest0913) TableName added in v0.14.0

func (PullRequest0913) TableName() string

type Subtask20220711 added in v0.13.0

type Subtask20220711 struct {
	commonArchived.Model
	TaskID       uint64     `json:"task_id" gorm:"index"`
	SubtaskName  string     `json:"name" gorm:"column:name;index"`
	Number       int        `json:"number"`
	BeganAt      *time.Time `json:"beganAt"`
	FinishedAt   *time.Time `json:"finishedAt" gorm:"index"`
	SpentSeconds int64      `json:"spentSeconds"`
}

Subtask20220711 DB snapshot model of models.Subtask

func (Subtask20220711) TableName added in v0.13.0

func (s Subtask20220711) TableName() string

type Task20220601 added in v0.12.0

type Task20220601 struct {
	archived.Model
	Plugin        string         `json:"plugin" gorm:"index"`
	Subtasks      datatypes.JSON `json:"subtasks"`
	Options       datatypes.JSON `json:"options"`
	Status        string         `json:"status"`
	Message       string         `json:"message"`
	Progress      float32        `json:"progress"`
	FailedSubTask string         `json:"failedSubTask"`
	PipelineId    uint64         `json:"pipelineId" gorm:"index"`
	PipelineRow   int            `json:"pipelineRow"`
	PipelineCol   int            `json:"pipelineCol"`
	BeganAt       *time.Time     `json:"beganAt"`
	FinishedAt    *time.Time     `json:"finishedAt" gorm:"index"`
	SpentSeconds  int            `json:"spentSeconds"`
}

func (Task20220601) TableName added in v0.12.0

func (Task20220601) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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