{"repo":"discorgento/module-migrations","free":true,"listed":false,"github":"https://github.com/discorgento/module-migrations","clone":"git clone https://github.com/discorgento/module-migrations.git","description":"A dev-friendly approach to handle database updates in Magento 2 🧰","language":"PHP","stars":25,"topics":["magento2","database","developer-experience","hacktoberfest","magento","magento2-extension","magento2-extension-free"],"license":"MIT","category":"databases-storage","readme_excerpt":"A dev-friendly approach to keep track of database changes in Magento 2 Sponsors [Install] [Usage] [🎭 Facades] [Notes] Just changed something on the admin panel or on the database and now you need to replicate it again in all project environments, including other dev machines? Magento supports data patches out of the box, but writing them can get verbose and repetitive quickly. This module greatly simplifies such process. From 50 lines to just 15, or simply 70% less code. SEVENTY percent fewer lines. But we're just getting started. 📥 Install [!NOTE] This module is compatible with Magento 2.4.6 onward, from PHP 8.1 to 8.4. 🛠️ Usage Demo There's also an extended version in Brazilian Portuguese including CMS content management overview available here. Basic Usage - in the module you're developing, create a php class under its Setup/Patch/Data/ dir; - make it extend Discorgento\\Migrations\\Setup\\Migration ; - put your logic inside the execute() , and run bin/magento setup:upgrade . Sample data patch: Then run: That's it, you successfully ensured that your database changes got tracked in all enviroments. Facades Besides simplifying the basic data patch structure, this module also provides helpers for common Magento patch tasks, such as admin config, CMS content, and EAV attributes. Use these when your patch needs to create or update Magento data without writing the same low-level setup code every time. See FACADES.md for more details, shared helper methods, and the full helper re","default_branch":null,"files":null,"tree":[],"storefront":"/r/discorgento","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/discorgento/module-migrations/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}