fix(pkg/db): create or upgrade postgres schema based on semver

This commit is contained in:
2019-09-01 12:27:06 +02:00
parent f19cc3249a
commit 6223f4e79b
21 changed files with 301 additions and 91 deletions

View File

@ -3,13 +3,18 @@ package compression
import (
"log"
"github.com/Masterminds/semver"
"github.com/go-flucky/flucky/pkg/logfile"
"github.com/spf13/cobra"
)
var compression bool
var configFile *string
var (
compression bool
configFile *string
version *semver.Version
)
var compressionCmd = &cobra.Command{
Use: "compression",
@ -33,8 +38,10 @@ var compressionCmd = &cobra.Command{
},
}
func InitCmd(cmd *cobra.Command, cnfFile *string) {
func InitCmd(cmd *cobra.Command, cnfFile *string, sverion *semver.Version) {
configFile = cnfFile
version = sverion
cmd.AddCommand(compressionCmd)
}