Files
zt/controller/db/migration_v14.go
zeekay 873220f90b rebrand: openziti → hanzozt (Hanzo Zero Trust)
Global rebrand of all OpenZiti references to Hanzo ZT:
- Go module paths: github.com/openziti/* → github.com/hanzozt/*
- Docker images: openziti/* → hanzozt/*
- Java packages: org.openziti.* → org.hanzozt.*
- Brand: OpenZiti → Hanzo ZT
- URLs: openziti.io → hanzozt.dev
2026-02-18 16:13:53 -08:00

25 lines
807 B
Go

package db
import (
"github.com/hanzozt/storage/boltz"
log "github.com/sirupsen/logrus"
)
func (m *Migrations) createInterceptV1ConfigType(step *boltz.MigrationStep) {
cfg, _ := m.stores.ConfigType.LoadOneByName(step.Ctx.Tx(), interceptV1ConfigType.Name)
if cfg == nil {
step.SetError(m.stores.ConfigType.Create(step.Ctx, interceptV1ConfigType))
} else {
log.Debugf("'%s' config type already exists. not creating.", interceptV1ConfigType.Name)
}
}
func (m *Migrations) createHostV1ConfigType(step *boltz.MigrationStep) {
cfg, _ := m.stores.ConfigType.LoadOneByName(step.Ctx.Tx(), hostV1ConfigType.Name)
if cfg == nil {
step.SetError(m.stores.ConfigType.Create(step.Ctx, hostV1ConfigType))
} else {
log.Debugf("'%s' config type already exists. not creating.", hostV1ConfigType.Name)
}
}