migrations

package
v0.0.0-...-925651e Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserMigration

type UserMigration struct{}

func (UserMigration) Auto

func (u UserMigration) Auto(db *gorm.DB) (err error)

Auto, to migrate the table / columns automatically by running `./run migrate --auto-migrate`

func (UserMigration) Down

func (u UserMigration) Down(m gorm.Migrator) (err error)

Down, to drop a group of migrations

func (UserMigration) Up

func (u UserMigration) Up(m gorm.Migrator) (err error)

Up, to increment your migration

Jump to

Keyboard shortcuts

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