构建数据库迁移体系
This commit is contained in:
1 parent
8a3ee2e7af
commit
77dfe418df
6 files changed
+241
-10
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Migration struct {
|
||||
Version string `gorm:"primary_key"`
|
||||
ApplyTime time.Time `gorm:"autoCreateTime"`
|
||||
}
|
||||
|
||||
func (Migration) TableName() string {
|
||||
return "sys_migration"
|
||||
}
|
||||
Reference in new issue
Block a user