migrations

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceVersion

func ForceVersion(dbPath string, version int) error

ForceVersion manually sets the version and clears the dirty flag

func GetMigrationVersion

func GetMigrationVersion(dbPath string) (uint, bool, error)

func MigrateDown

func MigrateDown(dbPath string, steps int) error

func RunMigrations

func RunMigrations(dbPath string) error

func RunMigrationsWithDB added in v1.0.1

func RunMigrationsWithDB(db *sql.DB) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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