-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Reorganize resources/setup files #22
Comments
Good proposal, Colin. |
I would like that to. |
Makes absolutely sense. And is less confusing than the current implementation in Magento 1. |
Hi Colin, we have reviewed the changes you proposed, and accepted them. We have formed two user stories out of this proposal. Module Setup Scripts in Single Folder As a Magento developer I want to have single location of module's setup scripts within module's directory. AC:
Module Resource Declaration Under Module's Node in Config As a Magento developer I want to have a clear way to associate all module's resources to a module they belong to. AC:
The user stories were added to our backlog. However, feel free to implement them yourself, if you wish to, and submit us a pull request. Thank you for the proposal. |
MAGETWO-32146: Copying and Copyright Year Update
Suggesting to get rid of declared "resources" like "cms_setup" in config.xml and instead use the module name as the resource name, e.g. "Mage_Cms". Then, simplify the directory structure like so:
Before:
After:
I think the above is more intuitive and more consistent with the other changes in Magento 2 vs Magento 1. Also, setup doesn't necessarily have anything to do with sql in all cases (e.g. MongoDb, Lucene, etc..) so "schema" is a better general term. Placing both under a single "setup" directory makes their purpose more apparent and organizes them under one directory since they are closely related.
The text was updated successfully, but these errors were encountered: