migrations

package
v0.0.0-...-05b3b51 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate(db *gorm.DB, models ...interface{}) error

AutoMigrate softly migrate given models

func DefaultDestructiveReset

func DefaultDestructiveReset(db *gorm.DB) error

DefaultDestructiveReset Drops all existing models and remigrates them

func DefaultMigration

func DefaultMigration(db *gorm.DB) error

DefaultMigration migrates all existing models

func DestructiveReset

func DestructiveReset(db *gorm.DB, models ...interface{}) error

DestructiveReset drop all tables and remigrate

Types

This section is empty.

Jump to

Keyboard shortcuts

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