Skip to content

Reorganize resources/setup files #22

Closed
@colinmollenhour

Description

@colinmollenhour

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:

  • Mage/Cms/sql/cms_setup/install-1.6.0.0.php
  • Mage/Cms/datal/cms_setup/install-1.6.0.0.php

After:

  • Mage/Cms/setup/schema/install-1.6.0.0.php
  • Mage/Cms/setup/data/install-1.6.0.0.php

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions