migration

package
v1.5.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateDb

func MigrateDb() error

MigrateDb runs schema migrations against the SQLite database located at `config.GetDBPath()`. The legacy variant terminated the process on any error, which made restoring an incompatible backup through the panel kill the whole panel. The function now returns an error so callers can decide what to do (the CLI prints and exits non-zero, the panel falls back to the previous database).

func MigrateDbWithOptions

func MigrateDbWithOptions(options Options) error

Types

type InboundData

type InboundData struct {
	Id      uint
	Tag     string
	Addrs   json.RawMessage
	OutJson json.RawMessage
}

type Options

type Options struct {
	RepairForeignKeyOrphans bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL