migrations

package
v0.0.0-...-0b3b87d Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

nolint

Index

Constants

View Source
const (
	DestructiveNo = iota
	DestructiveDown
	DestructiveUp
	DestructiveFully
)
View Source
const TEMPLATE = `` /* 463-byte string literal not displayed */

Variables

View Source
var DBType string
View Source
var Ms = make(map[string]M)

Functions

func Error

func Error(text string) error

func GetPath

func GetPath() (dir string, ok bool)

func GetTemplate

func GetTemplate(name, date string) string

Types

type M

type M interface {
	Up(tx *gorm.DB) error
	Down(tx *gorm.DB) error
	String() string
	DestructiveType() uint
}

func Add

func Add(a M) *M

Jump to

Keyboard shortcuts

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