migrate

package
v2.12.1-mercury06192024 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 15 Imported by: 0

README

Notes

  • Node operators do not always run their migrations with super user priviledges so you cannot use CREATE EXTENSION

Documentation

Index

Constants

View Source
const MIGRATIONS_DIR string = "migrations"

Variables

This section is empty.

Functions

func Create

func Create(db *sql.DB, name, migrationType string) error

func Current

func Current(ctx context.Context, db *sql.DB) (int64, error)

func Migrate

func Migrate(ctx context.Context, db *sql.DB) error

func Rollback

func Rollback(ctx context.Context, db *sql.DB, version null.Int) error

func SetMigrationENVVars added in v2.6.0

func SetMigrationENVVars(generalConfig chainlink.GeneralConfig) error

SetMigrationENVVars is used to inject values from config to goose migrations via env.

func Status

func Status(ctx context.Context, db *sql.DB) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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