datamigration

package
v0.0.0-...-a8b8e24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

NOTE (TC): datamigration is the last set of IAM force-upgrade data related transformations. PLEASE DO NOT MODIFY THESE MIGRATIONS. They happen at a specific point as part of the schema migrations so modifications might break.

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() error

Migrate executes all migrations we have

func (*Config) Reset

func (c *Config) Reset() error

Reset will drop the current state of the migration database. We don't need to reverse migrate since on reset we are just dropping the whole database.

Jump to

Keyboard shortcuts

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