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

Use SchemaTool::updateSchema instead of createSchema #155

Open
pascalheidmann-bedarf opened this issue Mar 19, 2019 · 0 comments
Open

Use SchemaTool::updateSchema instead of createSchema #155

pascalheidmann-bedarf opened this issue Mar 19, 2019 · 0 comments

Comments

@pascalheidmann-bedarf
Copy link

The generator uses the SchemaTool::createSchema call in the generated bootstrap if models are added.
As the function is called if you reinstall the plugin it tries to create the model's database tables but fails.
Therefore calling SchemaTool::updateSchema($classes, true); instead is preferable as it also creates the tables if they aren't present but won't raise any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants