Semaphore/cli/cmd/migrate.go
2024-10-26 12:56:17 +00:00

21 lines
370 B
Go

package cmd
import (
"github.com/semaphoreui/semaphore/util"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(migrateCmd)
}
var migrateCmd = &cobra.Command{
Use: "migrate",
Short: "Execute migrations",
Run: func(cmd *cobra.Command, args []string) {
store := createStore("migrate")
defer store.Close("migrate")
util.Config.PrintDbInfo()
},
}