indigocoding / module-connection-extend
Indigo Connection Extend extension for Magento2
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- php: ~5.6.0|^7.0
- magento/framework: >=101.0.0
This package is auto-updated.
Last update: 2024-09-29 05:36:38 UTC
README
This extension helps with using split database (checkout, sales) for Magento CE, and user-defined resources name in declarative schema (e.g: db_schema.xml) instead of only the 3 default resources (default, checkout, sales).
This extension is meant to be used by developers for easier development. Work with both Magento 2 Open Source and Commerce.
Requirements
Magento 2.3+ (Tested with Magento 2.3.0 EE, 2.3.4 CE and 2.4.0 CE)
✓ Install via composer (recommended)
Run the following command under your Magento 2 root dir:
composer require indigocoding/module-connection-extend
php bin/magento maintenance:enable
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento maintenance:disable
php bin/magento cache:flush
Install manually under app/code
- Download & place the contents of this repository under {YOUR-MAGENTO2-ROOT-DIR}/app/code/Indigo/ConnectionExtend
- Run the following commands under your Magento 2 root dir:
php bin/magento maintenance:enable
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento maintenance:disable
php bin/magento cache:flush
Usage
Magento split database (checkout, sales) for Magento Open Source
After the installation, setup sales and/or checkout connection(s) and resource(s) by modifying app/etc/env.php file, and create schemas (defined in env.php) + grant permission to database user.
If module PayPal_Braintree is enabled, delete its entry in setup_module table.
Run php bin/magento setup:upgrade.
User-defined resources
After the installation, Go to The Magento 2 admin panel.
Go to Stores -> Settings -> Configuration, under tab Advanced -> System -> Connection Extend Configuration. In Connection Extend List setting, enter the list of resource name as string, separated by a comma.
Setup new connection and resource by modifying app/etc/env.php file (new resource key must be the same as configured above), and creating schema (defined in env.php) + grant permission to database user.
Put the new resource name in db_schema.xml file whenever needed and enjoy!
Copyright © 2021 IndigoCoding. All rights reserved.