2026-04-06 15:48:37 +05:30
|
|
|
// Copyright IBM Corp. 2020, 2026
|
2023-02-02 17:15:17 -08:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2022-07-26 20:19:09 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
|
2026-10-12 10:33:41 -07:00
|
|
|
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/db/schema/migration"
|
2022-07-26 20:19:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// MigrationCheckError is an error returned when a migration hook check function
|
|
|
|
|
// reports an error.
|
|
|
|
|
type MigrationCheckError struct {
|
|
|
|
|
Version int
|
|
|
|
|
Edition string
|
|
|
|
|
Problems migration.Problems
|
|
|
|
|
RepairDescription string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (e MigrationCheckError) Error() string {
|
|
|
|
|
return fmt.Sprintf("check failed for %s:%d", e.Edition, e.Version)
|
|
|
|
|
}
|