mirror of https://github.com/pressly/goose.git
let DBConf definition live in main, since it will be common to several commands
parent
5c8a0d2123
commit
36f3bce74a
|
@ -9,6 +9,12 @@ import (
|
||||||
"path"
|
"path"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type DBConf struct {
|
||||||
|
Name string
|
||||||
|
Driver string
|
||||||
|
OpenStr string
|
||||||
|
}
|
||||||
|
|
||||||
var dbFolder = flag.String("db", "db", "folder containing db info")
|
var dbFolder = flag.String("db", "db", "folder containing db info")
|
||||||
var dbConfName = flag.String("config", "development", "which DB configuration to use")
|
var dbConfName = flag.String("config", "development", "which DB configuration to use")
|
||||||
var targetVersion = flag.Int("target", -1, "which DB version to target (defaults to latest version)")
|
var targetVersion = flag.Int("target", -1, "which DB version to target (defaults to latest version)")
|
||||||
|
|
|
@ -14,12 +14,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DBConf struct {
|
|
||||||
Name string
|
|
||||||
Driver string
|
|
||||||
OpenStr string
|
|
||||||
}
|
|
||||||
|
|
||||||
type DBVersion struct {
|
type DBVersion struct {
|
||||||
VersionId int
|
VersionId int
|
||||||
TStamp time.Time
|
TStamp time.Time
|
||||||
|
|
Loading…
Reference in New Issue