add configs

This commit is contained in:
yanghao05
2023-01-29 17:21:01 +08:00
parent 7151c52543
commit e07f8a67a4
11 changed files with 500 additions and 240 deletions

View File

@@ -20,7 +20,7 @@ type Migration20140202Init struct {
}
func New20140202InitMigration() contracts.Migration {
return &Migration20140202Init{id: "20140202_init"}
return &Migration20140202Init{id: "20140202_package_placeholder"}
}
func (m *Migration20140202Init) ID() string {
@@ -28,18 +28,9 @@ func (m *Migration20140202Init) ID() string {
}
func (m *Migration20140202Init) Up(tx *gorm.DB) error {
table := m.table()
return tx.AutoMigrate(&table)
return nil
}
func (m *Migration20140202Init) Down(tx *gorm.DB) error {
return tx.Migrator().DropTable(m.table())
}
func (m *Migration20140202Init) table() interface{} {
type TableName struct {
FieldName string
}
return TableName{}
return nil
}