An extension for Magento 2 by Blackbird Agency
This project is a developer tool destined to speed up the tables creation's scripts of a Magento 2 module. The purpose of this project is to make easier to create extra tables for your Magento 2 modules. For example, you love the Phpmyadmin UI and have designed your tables with it. But now you have to write the entire setup script for your Magento 2 module... If only you were allowed to generate this setup script from your tables... And here we are! That's why we offer you this module: it allows you to generate your InstallSchema.php setup file throught your database tables.
Requirements:
- You should have initialized a databasse and created your table(s)
You can generate the setup file via two methods:
- CLI command
- UI Backend
Allowed CLI commands:
php magento isg:generate [tables...]
options:
-n : custom namespace name for the file -l : location where to generate the file
- Connect to your Magento 2 admin panel, then go to System => Install Schema Generator
- Insert your custom namespace
- Select the tables to generate into a InstallSchema.php setup file
- Download your file and enjoy it
Zip Package:
Unzip the package in app/code/Blackbird/InstallSchemaGenerator.
Composer Package:
composer require blackbird/installschemagenerator
Then, run the following magento command:
php bin/magento setup:upgrade
If you are in production mode, do not forget to recompile and redeploy the static resources.
Raise a request.
- Thomas Klein - Initial work - It's me!
- Blackbird Team - Contributor - They're awesome!
For further information, contact us:
- by email: hello@bird.eu
- or by form: https://black.bird.eu/en/contacts/
This project is licensed under the Blackbird Policy License - see the LICENSE link for details.
That's all folks!