migration

package
v0.0.0-...-4fe8a44 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

View Source
const (
	// PreForceUpgradeMigration is last schema migration before force-upgrade.
	// All of our golang force-upgrade code assumes we are on this schema version.
	PreForceUpgradeMigration = 74
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PGURL              *url.URL
	Path               string
	Logger             logger.Logger
	MaxConnections     int
	MaxIdleConnections int
}

Config holds the information needed to connect to the database (PGURL), to find the migration SQL files (Path), and log debug messages (Logger).

func (*Config) Migrate

func (c *Config) Migrate(dataMigConf datamigration.Config) error

Migrate executes all migrations we have

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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