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