migrations

package
v0.0.0-...-5bcfc9d Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMigrationModels

func AuthMigrationModels() []interface{}

func MigrateModels

func MigrateModels(db *gorm.DB, models []interface{}, AlterColums []AlterColumn)

func RunAllMigrations

func RunAllMigrations(db *storage.Database)

Types

type AlterColumn

type AlterColumn struct {
	Model     interface{}
	TableName string
	Column    string
	Type      string
}

func AlterColumnModels

func AlterColumnModels() []AlterColumn

func (*AlterColumn) UpdateColumnType

func (a *AlterColumn) UpdateColumnType(db *gorm.DB) error

Jump to

Keyboard shortcuts

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