2014-08-13 02:38:29 +02:00
|
|
|
// Package bash implements the Driver interface.
|
2014-08-12 03:20:28 +02:00
|
|
|
package bash
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mattes/migrate/file"
|
|
|
|
_ "github.com/mattes/migrate/migrate/direction"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Driver struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (driver *Driver) Initialize(url string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (driver *Driver) FilenameExtension() string {
|
|
|
|
return "sh"
|
|
|
|
}
|
|
|
|
|
2014-08-13 20:06:38 +02:00
|
|
|
func (driver *Driver) Migrate(f file.File, pipe chan interface{}) {
|
2014-08-12 03:20:28 +02:00
|
|
|
defer close(pipe)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func (driver *Driver) Version() (uint64, error) {
|
|
|
|
return uint64(0), nil
|
|
|
|
}
|