migrate

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package migrate provides database migration functionality for the Scroll paymaster service.

Index

Constants

View Source
const MigrationsDir string = "migrations"

MigrationsDir migration dir

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB) error

Migrate migrate db

func ResetDB

func ResetDB(db *gorm.DB) error

ResetDB clean and migrate db.

func Rollback

func Rollback(db *gorm.DB, version int64) error

Rollback to the given version

Types

This section is empty.

Jump to

Keyboard shortcuts

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