Files
shadowdaoandClaude Sonnet 5.5 962d708fdd Rename Go module paths to repo.anhonesthost.net/CyberCoveLLC/threshold
Rename root, api and sdk module paths (imports, go.mod, go_package,
ldflags, build scripts, buf configs) and regenerate protobuf/gateway
code with the project's pinned toolchain. Wire identifiers unchanged.
api gets a local replace for sdk; root/api/sdk require v0.1.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 10:33:41 -07:00

39 lines
1.3 KiB
Go

// Copyright IBM Corp. 2020, 2026
// SPDX-License-Identifier: BUSL-1.1
// Package oss is used to embed the sql statements for the oss edition and
// registering the edition for the schema.Manager.
package oss
import (
"embed"
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/db/schema"
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/db/schema/internal/edition"
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/db/schema/migration"
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/db/schema/migrations/oss/internal/hook46001"
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/db/schema/migrations/oss/internal/hook97001"
)
// postgres contains the migrations sql files for postgres oss edition
//
//go:embed postgres
var postgres embed.FS
var prehooks = map[int]*migration.Hook{
46001: {
CheckFunc: hook46001.FindIllegalAssociations,
RepairFunc: hook46001.RepairIllegalAssociations,
RepairDescription: hook46001.RepairDescription,
},
97001: {
CheckFunc: hook97001.FindInvalidAssociations,
RepairFunc: hook97001.RepairInvalidAssociations,
RepairDescription: hook97001.RepairDescription,
},
}
func init() {
schema.RegisterEdition("oss", schema.Postgres, postgres, 0, edition.WithPreHooks(prehooks))
}