-
Notifications
You must be signed in to change notification settings - Fork 15
Split database #54
Comments
At this time the AvaTax extension does not support Magento Enterprise's split mode and we don't have this on our roadmap. Per this page one of the requirements of using Magento's split database feature is that custom extensions can not "Use foreign keys to tables in the checkout, sales, or main databases". We are actually just getting ready to release a new version of this extension (see this PR) that will add foreign key constraints to the @rsisco Can you take a look at the requirements of Enterprise's split database mode and come up with a level of effort for supporting it? |
@keiant25 We've added support for Magento Enterprise's Split Database mode to the develop branch. We have not yet released this as an official release. We've tested this locally, but would you be willing to test this in your environment to ensure everything works for you? Here are instructions on how to install the extension from the develop branch:
|
Split database support has been added in version 1.0.0 of this extension: https://github.com/classyllama/ClassyLlama_AvaTax/releases/tag/1.0.0 |
Hey @erikhansen - I'm curious how you have got past the restriction to not use foreign keys against the sales tables in this instance? |
@wsagen Take a look at this commit: https://github.com/classyllama/ClassyLlama_AvaTax/pull/58/files#diff-f28060adec80b6f03a1ae1302d809fffR34 What we did is we moved our custom DB tables into the "sales" connection so that our custom table could have foreign key constraints on other sales tables. It wouldn't work if we were trying to perform a foreign key constraint between the connection types. For your easy reference, here is the "create syntax" for one of the AvaTax tables that uses foreign key constraints:
Note: the above table was created using the |
The extension does not install on magento enterprise because it says:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sales_invoice' doesn't exist, query was: DESCRIBE
sales_invoice
This happens when the split mode its enabled.
The text was updated successfully, but these errors were encountered: