migrations

package
v0.0.0-...-c558e1b Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Migrations = migrate.NewMigrations()

Functions

func Reset

func Reset(ctx context.Context, db *bun.DB) error

Reset drops all tables and re-runs migrations

func Run

func Run(ctx context.Context, db *bun.DB) error

Run executes all pending migrations

func Setup

func Setup(db *bun.DB) *migrate.Migrations

Setup initializes migrations with proper configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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