v1_14

package
v1.21.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBlockOnOfficialReviewRequests

func AddBlockOnOfficialReviewRequests(x *xorm.Engine) error

func AddChangedProtectedFilesPullRequestColumn

func AddChangedProtectedFilesPullRequestColumn(x *xorm.Engine) error

func AddDismissedReviewColumn

func AddDismissedReviewColumn(x *xorm.Engine) error

func AddRepoTransfer

func AddRepoTransfer(x *xorm.Engine) error

func AddScopeAndNonceColumnsToOAuth2Grant

func AddScopeAndNonceColumnsToOAuth2Grant(x *xorm.Engine) error

func AddSessionTable

func AddSessionTable(x *xorm.Engine) error

func AddSortingColToProjectBoard

func AddSortingColToProjectBoard(x *xorm.Engine) error

func AddTimeIDCommentColumn

func AddTimeIDCommentColumn(x *xorm.Engine) error

func AddUserRedirect

func AddUserRedirect(x *xorm.Engine) (err error)

func CommentTypeDeleteBranchUseOldRef

func CommentTypeDeleteBranchUseOldRef(x *xorm.Engine) error

func ConvertHookTaskTypeToVarcharAndTrim

func ConvertHookTaskTypeToVarcharAndTrim(x *xorm.Engine) error

func ConvertTaskTypeToString

func ConvertTaskTypeToString(x *xorm.Engine) error

func ConvertTopicNameFrom25To50

func ConvertTopicNameFrom25To50(x *xorm.Engine) error

func ConvertWebhookTaskTypeToString

func ConvertWebhookTaskTypeToString(x *xorm.Engine) error

func DeleteOrphanedIssueLabels

func DeleteOrphanedIssueLabels(x *xorm.Engine) error

DeleteOrphanedIssueLabels looks through the database for issue_labels where the label no longer exists and deletes them.

func FixPostgresIDSequences

func FixPostgresIDSequences(x *xorm.Engine) error

func FixPublisherIDforTagReleases

func FixPublisherIDforTagReleases(x *xorm.Engine) error

func FixRepoTopics

func FixRepoTopics(x *xorm.Engine) error

func RecalculateUserEmptyPWD

func RecalculateUserEmptyPWD(x *xorm.Engine) (err error)

func RecreateUserTableToFixDefaultValues

func RecreateUserTableToFixDefaultValues(_ *xorm.Engine) error

func RemoveInvalidLabels

func RemoveInvalidLabels(x *xorm.Engine) error

RemoveInvalidLabels looks through the database to look for comments and issue_labels that refer to labels do not belong to the repository or organization that repository that the issue is in

func UpdateCodeCommentReplies

func UpdateCodeCommentReplies(x *xorm.Engine) error

func UpdateReactionConstraint

func UpdateReactionConstraint(x *xorm.Engine) error

Types

type OAuth2Grant

type OAuth2Grant struct {
	ID            int64  `xorm:"pk autoincr"`
	UserID        int64  `xorm:"INDEX unique(user_application)"`
	ApplicationID int64  `xorm:"INDEX unique(user_application)"`
	Counter       int64  `xorm:"NOT NULL DEFAULT 1"`
	Scope         string `xorm:"TEXT"`
	Nonce         string `xorm:"TEXT"`
	CreatedUnix   int64  `xorm:"created"`
	UpdatedUnix   int64  `xorm:"updated"`
}

OAuth2Grant here is a snapshot of models.OAuth2Grant for this version of the database, as it does not appear to have been added as a part of a previous migration.

func (*OAuth2Grant) TableName

func (grant *OAuth2Grant) TableName() string

TableName sets the database table name to be the correct one, as the autogenerated table name for this struct is "o_auth2_grant".

Jump to

Keyboard shortcuts

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