修复 意外的迁移命令
This commit is contained in:
parent
659654e79a
commit
a62a8f69e7
@ -2,9 +2,9 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"framework_v2/internal/providers"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
"leafdev.top/leaf/rag/internal/providers"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
@ -27,9 +27,9 @@ func Execute() {
|
||||
rootCmd.AddCommand(scheduleCommand)
|
||||
|
||||
rootCmd.AddCommand(httpCommand)
|
||||
rootCmd.AddCommand(migrateCommand)
|
||||
|
||||
if config.DebugMode.Enable {
|
||||
rootCmd.AddCommand(migrateCommand)
|
||||
rootCmd.AddCommand(dsnCommand)
|
||||
rootCmd.AddCommand(createGoMigrateCommand)
|
||||
rootCmd.AddCommand(genMigrateCommand)
|
||||
|
Loading…
Reference in New Issue
Block a user