migration

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(db *gorm.DB, migration string, batch uint8)

func Delete

func Delete(db *gorm.DB, migration string)

func GetLastBatch

func GetLastBatch(db *gorm.DB) uint8

func GetMigrationsName

func GetMigrationsName(db *gorm.DB) []string

Types

type Migration

type Migration struct {
	ID        uint   `gorm:"primarykey"`
	Migration string `gorm:""`
	Batch     uint8  `gorm:""`
}

Migration model for database migrations

Jump to

Keyboard shortcuts

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