migrations

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	IndexerMigrationTable = "libindex_migrations"
	MatcherMigrationTable = "libvuln_migrations"
)

Variables

View Source
var IndexerMigrations = []migrate.Migration{
	{
		ID: 1,
		Up: runFile("indexer/01-init.sql"),
	},
	{
		ID: 2,
		Up: runFile("indexer/02-digests.sql"),
	},
	{
		ID: 3,
		Up: runFile("indexer/03-unique-manifest_index.sql"),
	},
	{
		ID: 4,
		Up: runFile("indexer/04-foreign-key-cascades.sql"),
	},
	{
		ID: 5,
		Up: runFile("indexer/05-delete-manifest-index-index.sql"),
	},
	{
		ID: 6,
		Up: runFile("indexer/06-file-artifacts.sql"),
	},
	{
		ID: 7,
		Up: runFile("indexer/07-index-manifest_index.sql"),
	},
}
View Source
var MatcherMigrations = []migrate.Migration{
	{
		ID: 1,
		Up: runFile("matcher/01-init.sql"),
	},
	{
		ID: 2,
		Up: runFile("matcher/02-indexes.sql"),
	},
	{
		ID: 3,
		Up: runFile("matcher/03-pyup-fingerprint.sql"),
	},
	{
		ID: 4,
		Up: runFile("matcher/04-enrichments.sql"),
	},
	{
		ID: 5,
		Up: runFile("matcher/05-uo_enrich-fkey.sql"),
	},
	{
		ID: 6,
		Up: runFile("matcher/06-delete-debian-update_operation.sql"),
	},
	{
		ID: 7,
		Up: runFile("matcher/07-force-alpine-update.sql"),
	},
	{
		ID: 8,
		Up: runFile("matcher/08-updater-status.sql"),
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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