migrate

package
v2.7.2-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(db *sql.DB, lggr logger.Logger) (int64, error)

func Migrate

func Migrate(db *sql.DB, lggr logger.Logger) error

func Rollback

func Rollback(db *sql.DB, lggr logger.Logger, 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(db *sql.DB, lggr logger.Logger) 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