Skip to content

optimize:schema --table 指定表名的时候会报错 #3209

Description

@NbwutV

所属功能组件

路由(Route)

ThinkPHP 版本

v8.1.4

操作系统

all

错误信息

信息:执行php think optimize:schema --table=users
报错信息: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'top_think.1' doesn't exist
路径:vendor/topthink/framework/src/think/console/command/optimize/Schema.php
行号: 43

其它说明

Image

判断中用hasOption的返回值覆盖了table的值。
cacheTable需要传table 表名,现在传的是true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions