support logger auto call
This commit is contained in:
10
contracts/migration.go
Normal file
10
contracts/migration.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package contracts
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
// Migration route interface
|
||||
type Migration interface {
|
||||
ID() string
|
||||
Up(tx *gorm.DB) error
|
||||
Down(tx *gorm.DB) error
|
||||
}
|
||||
Reference in New Issue
Block a user