2022-08-11 12:24:23 +01:00
|
|
|
package foundation
|
2022-08-10 10:09:36 +01:00
|
|
|
|
|
|
|
import "database/sql"
|
|
|
|
|
|
|
|
type SampleMigrator struct{}
|
|
|
|
|
|
|
|
func (sm *SampleMigrator) DB() *sql.DB {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sm *SampleMigrator) DriverName() string {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sm *SampleMigrator) Setup() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sm *SampleMigrator) MigrateToStep(step int) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sm *SampleMigrator) TearDown() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
var _ Migrator = &SampleMigrator{}
|