README ¶ Notes Node operators do not always run their migrations with super user priviledges so you cannot use CREATE EXTENSION Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants func Create(db *sql.DB, name, migrationType string) error func Current(db *sql.DB, lggr logger.Logger) (int64, error) func Migrate(db *sql.DB, lggr logger.Logger) error func Rollback(db *sql.DB, lggr logger.Logger, version null.Int) error func Status(db *sql.DB, lggr logger.Logger) error 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 Status ¶ func Status(db *sql.DB, lggr logger.Logger) error Types ¶ This section is empty. Source Files ¶ View all Source files migrate.go Directories ¶ Show internal Expand all Path Synopsis migrations Click to show internal directories. Click to hide internal directories.