Documentation
¶
Index ¶
- Constants
- func EnsureDefaultData()
- type ArticleUserActionResult
- type PointsRecordActionResult
- type PostMarkdownResult
- type ReplyMarkdownResult
- type ReplySequenceResult
- type ReportLegacyColumnResult
- type SiteChromeContentMigrationResult
- type TopicCountNamingResult
- type TopicPostMigrationResult
- func BackfillFileUsagesTopicPost() TopicPostMigrationResult
- func BackfillFileUsagesTopicPostWithDB(conn *gorm.DB) TopicPostMigrationResult
- func BackfillModerationLogsTopicPost() TopicPostMigrationResult
- func BackfillModerationLogsTopicPostWithDB(conn *gorm.DB) TopicPostMigrationResult
- func BackfillTopicPostModel() TopicPostMigrationResult
- func BackfillTopicPostModelWithDB(conn *gorm.DB) TopicPostMigrationResult
- type TopicSearchIndexMigrationResult
Constants ¶
View Source
const TopicPostMigrationScope = "topic_post_model"
Variables ¶
This section is empty.
Functions ¶
func EnsureDefaultData ¶ added in v0.2.41
func EnsureDefaultData()
Types ¶
type ArticleUserActionResult ¶ added in v0.2.41
func BackfillArticleUserAction ¶ added in v0.2.41
func BackfillArticleUserAction() ArticleUserActionResult
type PointsRecordActionResult ¶ added in v0.2.49
type PointsRecordActionResult struct {
Backfilled int64
ChangeReasonColumnDropped bool
Failed int
LastFailed string
}
func MigratePointsRecordAction ¶ added in v0.2.49
func MigratePointsRecordAction() PointsRecordActionResult
func MigratePointsRecordActionWithDB ¶ added in v0.2.49
func MigratePointsRecordActionWithDB(conn *gorm.DB) PointsRecordActionResult
type PostMarkdownResult ¶ added in v0.2.53
func RebuildPostMarkdown ¶ added in v0.2.53
func RebuildPostMarkdown() PostMarkdownResult
func RebuildPostMarkdownWithDB ¶ added in v0.2.53
func RebuildPostMarkdownWithDB(conn *gorm.DB) PostMarkdownResult
type ReplyMarkdownResult ¶
func RebuildReplyMarkdown ¶
func RebuildReplyMarkdown() ReplyMarkdownResult
type ReplySequenceResult ¶ added in v0.2.22
type ReplySequenceResult struct {
Articles int
Replies int
Skipped int
Failed int
LastFailed uint64
}
func BackfillReplySequence ¶ added in v0.2.22
func BackfillReplySequence() ReplySequenceResult
type ReportLegacyColumnResult ¶ added in v0.2.49
type ReportLegacyColumnResult struct {
ArticleIDColumnDropped bool
StatusArticleIndexDrop bool
ArticleIndexDrop bool
Failed int
LastFailed string
}
func DropReportLegacyColumns ¶ added in v0.2.49
func DropReportLegacyColumns() ReportLegacyColumnResult
func DropReportLegacyColumnsWithDB ¶ added in v0.2.49
func DropReportLegacyColumnsWithDB(conn *gorm.DB) ReportLegacyColumnResult
type SiteChromeContentMigrationResult ¶ added in v0.2.45
func MigrateSiteChromeContent ¶ added in v0.2.45
func MigrateSiteChromeContent() SiteChromeContentMigrationResult
type TopicCountNamingResult ¶ added in v0.2.49
type TopicCountNamingResult struct {
UserStatisticsMigrated bool
DailyStatsMigrated int64
Failed int
LastFailed string
}
func MigrateTopicCountNaming ¶ added in v0.2.49
func MigrateTopicCountNaming() TopicCountNamingResult
func MigrateTopicCountNamingWithDB ¶ added in v0.2.49
func MigrateTopicCountNamingWithDB(conn *gorm.DB) TopicCountNamingResult
type TopicPostMigrationResult ¶ added in v0.2.49
type TopicPostMigrationResult struct {
Topics int
Posts int
Categories int
TopicCategoryIndexes int
TopicUserActions int
TopicUserStats int
Mappings int
Notifications int
ReportsChecked int
ReportsMissing int
FileUsages int
FileUsagesMissing int
ModerationLogs int
ModerationLogsMissing int
Skipped int
Failed int
LastFailed string
}
func BackfillFileUsagesTopicPost ¶ added in v0.2.49
func BackfillFileUsagesTopicPost() TopicPostMigrationResult
func BackfillFileUsagesTopicPostWithDB ¶ added in v0.2.49
func BackfillFileUsagesTopicPostWithDB(conn *gorm.DB) TopicPostMigrationResult
func BackfillModerationLogsTopicPost ¶ added in v0.2.49
func BackfillModerationLogsTopicPost() TopicPostMigrationResult
func BackfillModerationLogsTopicPostWithDB ¶ added in v0.2.49
func BackfillModerationLogsTopicPostWithDB(conn *gorm.DB) TopicPostMigrationResult
func BackfillTopicPostModel ¶ added in v0.2.49
func BackfillTopicPostModel() TopicPostMigrationResult
func BackfillTopicPostModelWithDB ¶ added in v0.2.49
func BackfillTopicPostModelWithDB(conn *gorm.DB) TopicPostMigrationResult
type TopicSearchIndexMigrationResult ¶ added in v0.2.49
type TopicSearchIndexMigrationResult struct {
Skipped bool `json:"skipped"`
Rebuilt bool `json:"rebuilt"`
ProcessedCount int `json:"processedCount"`
FailedCount int `json:"failedCount"`
LegacyIndexDeleteTried bool `json:"legacyIndexDeleteTried"`
LegacyIndexDeleted bool `json:"legacyIndexDeleted"`
Failed int `json:"failed"`
LastFailed string `json:"lastFailed"`
}
func MigrateTopicSearchIndex ¶ added in v0.2.49
func MigrateTopicSearchIndex() TopicSearchIndexMigrationResult
Click to show internal directories.
Click to hide internal directories.