markus
366dccde12
Instead to implement own logic how the database scheme should be updated or migrated to a newer or older version flucky use now instead the go-migrate package.
29 lines
504 B
Go
29 lines
504 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"git.cryptic.systems/volker.raschek/flucky/cli"
|
|
"github.com/Masterminds/semver"
|
|
|
|
_ "github.com/golang-migrate/migrate/v4/database/postgres"
|
|
_ "github.com/golang-migrate/migrate/v4/database/sqlite3"
|
|
_ "github.com/lib/pq"
|
|
_ "github.com/mattn/go-sqlite3"
|
|
)
|
|
|
|
var (
|
|
version string
|
|
)
|
|
|
|
func main() {
|
|
sversion, err := semver.NewVersion(version)
|
|
if err != nil {
|
|
log.Printf("The sematic versioning is invalid: %v", version)
|
|
os.Exit(1)
|
|
}
|
|
|
|
cli.Execute(sversion)
|
|
}
|