Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gii/model --tableName="*" will generate activeRecord for table that I do not need it,like table migrations #535

Open
wigginskuang opened this issue Sep 7, 2023 · 1 comment
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement

Comments

@wigginskuang
Copy link

What steps will reproduce the problem?

    $this->run("gii/model", [
            "interactive" => false,
            'tableName' => "*",
            "ns" => "common\\models\\base",
        ]);

What's expected?

    $this->run("gii/model", [
            "interactive" => false,
            'tableName' => "*",
            'excluded'=>["migrations",...]
            "ns" => "common\\models\\base",
        ]);

What do you get instead?

Additional info

Q A
Yii version 2.0.45.
PHP version 7.4
Database version mariadb-10.6.8
Operating system linux
@samdark
Copy link
Member

samdark commented Oct 19, 2023

Yes. Can exclude migrations by default.

@samdark samdark added the status:ready for adoption Feel free to implement this issue. label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants