Documentation ¶
Index ¶
- func AddBlockOnOfficialReviewRequests(x *xorm.Engine) error
- func AddChangedProtectedFilesPullRequestColumn(x *xorm.Engine) error
- func AddDismissedReviewColumn(x *xorm.Engine) error
- func AddRepoTransfer(x *xorm.Engine) error
- func AddScopeAndNonceColumnsToOAuth2Grant(x *xorm.Engine) error
- func AddSessionTable(x *xorm.Engine) error
- func AddSortingColToProjectBoard(x *xorm.Engine) error
- func AddTimeIDCommentColumn(x *xorm.Engine) error
- func AddUserRedirect(x *xorm.Engine) (err error)
- func CommentTypeDeleteBranchUseOldRef(x *xorm.Engine) error
- func ConvertHookTaskTypeToVarcharAndTrim(x *xorm.Engine) error
- func ConvertTaskTypeToString(x *xorm.Engine) error
- func ConvertTopicNameFrom25To50(x *xorm.Engine) error
- func ConvertWebhookTaskTypeToString(x *xorm.Engine) error
- func DeleteOrphanedIssueLabels(x *xorm.Engine) error
- func FixPostgresIDSequences(x *xorm.Engine) error
- func FixPublisherIDforTagReleases(x *xorm.Engine) error
- func FixRepoTopics(x *xorm.Engine) error
- func RecalculateUserEmptyPWD(x *xorm.Engine) (err error)
- func RecreateUserTableToFixDefaultValues(_ *xorm.Engine) error
- func RemoveInvalidLabels(x *xorm.Engine) error
- func UpdateCodeCommentReplies(x *xorm.Engine) error
- func UpdateReactionConstraint(x *xorm.Engine) error
- type OAuth2Grant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRepoTransfer ¶
func AddSessionTable ¶
func AddTimeIDCommentColumn ¶
func AddUserRedirect ¶
func ConvertTaskTypeToString ¶
func DeleteOrphanedIssueLabels ¶
DeleteOrphanedIssueLabels looks through the database for issue_labels where the label no longer exists and deletes them.
func FixPostgresIDSequences ¶
func FixRepoTopics ¶
func RecalculateUserEmptyPWD ¶
func RemoveInvalidLabels ¶
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
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".
Click to show internal directories.
Click to hide internal directories.