hashmigrations

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: AGPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Increment this when the hash calculation algorithm changes
	CurrentHashVersion = 11
	// Config key for tracking hash migration version
	HashMigrationVersionKey = "hash_migration_version"
)

Variables

This section is empty.

Functions

func RunHashMigrationsIfNeeded

func RunHashMigrationsIfNeeded(pool *pgxpool.Pool, daemonRunner shared.DaemonRunner, vulndbService shared.VulnDBService, configService shared.ConfigService, dependencyProxySecretService shared.DependencyProxySecretService) error

func RunRiverMigrations added in v1.17.0

func RunRiverMigrations() error

runRiverMigrations applies pending River Queue migrations (the tables river's job/queue client needs) against the river database. This is the programmatic equivalent of running `river migrate-up` via the river CLI.

Types

This section is empty.

Jump to

Keyboard shortcuts

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