添加数据到数据库,但无法插入,临时提交保存
This commit is contained in:
@@ -35,7 +35,8 @@ func NewInitDBCmd() *cobra.Command {
|
||||
defer db.Close()
|
||||
|
||||
if err := database.InitTables(db, force); err != nil {
|
||||
return fmt.Errorf("数据库初始化失败: %w", err)
|
||||
logger.Debug(err)
|
||||
return err
|
||||
}
|
||||
|
||||
// 测试数据库连接
|
||||
|
||||
Reference in New Issue
Block a user