Skip to content

Commit

Permalink
Merge pull request #233 from magento-firedrakes/MAGETWO-34647
Browse files Browse the repository at this point in the history
[Firedrakes] Concurrent Order Management
  • Loading branch information
Logvin, Michael(mlogvin) committed Apr 16, 2015
2 parents d4f4da9 + 6fe7132 commit d085f88
Show file tree
Hide file tree
Showing 82 changed files with 1,860 additions and 1,342 deletions.
1 change: 0 additions & 1 deletion app/code/Magento/Authorization/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'role_id',
$installer->getTable('authorization_role'),
'role_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)->setComment(
'Admin Rule Table'
Expand Down
9 changes: 0 additions & 9 deletions app/code/Magento/Bundle/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'parent_id',
$installer->getTable('catalog_product_entity'),
'entity_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Product Bundle Option');
Expand Down Expand Up @@ -138,7 +137,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'option_id',
$installer->getTable('catalog_product_bundle_option'),
'option_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Product Bundle Option Value');
Expand Down Expand Up @@ -238,7 +236,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'option_id',
$installer->getTable('catalog_product_bundle_option'),
'option_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
Expand All @@ -251,7 +248,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'product_id',
$installer->getTable('catalog_product_entity'),
'entity_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Product Bundle Selection');
Expand Down Expand Up @@ -305,7 +301,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'website_id',
$installer->getTable('store_website'),
'website_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
Expand All @@ -318,7 +313,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'selection_id',
$installer->getTable('catalog_product_bundle_selection'),
'selection_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Product Bundle Selection Price');
Expand Down Expand Up @@ -383,7 +377,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'customer_group_id',
$installer->getTable('customer_group'),
'customer_group_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
Expand All @@ -396,7 +389,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'entity_id',
$installer->getTable('catalog_product_entity'),
'entity_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
Expand All @@ -409,7 +401,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'website_id',
$installer->getTable('store_website'),
'website_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Product Bundle Price Index');
Expand Down
87 changes: 1 addition & 86 deletions app/code/Magento/Catalog/Setup/InstallSchema.php

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions app/code/Magento/CatalogInventory/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'product_id',
$installer->getTable('catalog_product_entity'),
'entity_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
$installer->getFkName('cataloginventory_stock_item', 'stock_id', 'cataloginventory_stock', 'stock_id'),
'stock_id',
$installer->getTable('cataloginventory_stock'),
'stock_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Cataloginventory Stock Item');
Expand Down
7 changes: 0 additions & 7 deletions app/code/Magento/CatalogRule/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,23 +418,20 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'customer_group_id',
$installer->getTable('customer_group'),
'customer_group_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
$installer->getFkName('catalogrule_group_website', 'rule_id', 'catalogrule', 'rule_id'),
'rule_id',
$installer->getTable('catalogrule'),
'rule_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
$installer->getFkName('catalogrule_group_website', 'website_id', 'store_website', 'website_id'),
'website_id',
$installer->getTable('store_website'),
'website_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('CatalogRule Group Website');
Expand Down Expand Up @@ -469,15 +466,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'rule_id',
$installer->getTable('catalogrule'),
'rule_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
$installer->getFkName('catalogrule_website', 'website_id', 'store_website', 'website_id'),
'website_id',
$installer->getTable('store_website'),
'website_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Rules To Websites Relations');
Expand Down Expand Up @@ -512,7 +507,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'rule_id',
$installer->getTable('catalogrule'),
'rule_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
Expand All @@ -525,7 +519,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'customer_group_id',
$installer->getTable('customer_group'),
'customer_group_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Rules To Customer Groups Relations');
Expand Down
3 changes: 0 additions & 3 deletions app/code/Magento/CatalogUrlRewrite/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,20 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'product_id',
$installer->getTable('catalog_product_entity'),
'entity_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
$installer->getFkName($tableName, 'category_id', 'catalog_category_entity', 'entity_id'),
'category_id',
$installer->getTable('catalog_category_entity'),
'entity_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
$installer->getFkName($tableName, 'url_rewrite_id', 'url_rewrite', 'url_rewrite_id'),
'url_rewrite_id',
$installer->getTable('url_rewrite'),
'url_rewrite_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('url_rewrite_relation');
Expand Down
2 changes: 0 additions & 2 deletions app/code/Magento/CheckoutAgreements/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,12 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'agreement_id',
$installer->getTable('checkout_agreement'),
'agreement_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)->addForeignKey(
$installer->getFkName('checkout_agreement_store', 'store_id', 'store', 'store_id'),
'store_id',
$installer->getTable('store'),
'store_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)->setComment(
'Checkout Agreement Store'
Expand Down
4 changes: 0 additions & 4 deletions app/code/Magento/Cms/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,12 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'block_id',
$installer->getTable('cms_block'),
'block_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)->addForeignKey(
$installer->getFkName('cms_block_store', 'store_id', 'store', 'store_id'),
'store_id',
$installer->getTable('store'),
'store_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)->setComment(
'CMS Block To Store Linkage Table'
Expand Down Expand Up @@ -262,14 +260,12 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'page_id',
$installer->getTable('cms_page'),
'page_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)->addForeignKey(
$installer->getFkName('cms_page_store', 'store_id', 'store', 'store_id'),
'store_id',
$installer->getTable('store'),
'store_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)->setComment(
'CMS Page To Store Linkage Table'
Expand Down
9 changes: 1 addition & 8 deletions app/code/Magento/ConfigurableProduct/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'product_id',
$installer->getTable('catalog_product_entity'),
'entity_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_NO_ACTION
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Product Super Attribute Table');

Expand Down Expand Up @@ -147,15 +146,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'product_super_attribute_id',
$installer->getTable('catalog_product_super_attribute'),
'product_super_attribute_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
$installer->getFkName('catalog_product_super_attribute_label', 'store_id', 'store', 'store_id'),
'store_id',
$installer->getTable('store'),
'store_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Product Super Attribute Label Table');
Expand Down Expand Up @@ -231,7 +228,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'website_id',
$installer->getTable('store_website'),
'website_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
Expand All @@ -244,7 +240,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'product_super_attribute_id',
$installer->getTable('catalog_product_super_attribute'),
'product_super_attribute_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Product Super Attribute Pricing Table');
Expand Down Expand Up @@ -300,15 +295,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'product_id',
$installer->getTable('catalog_product_entity'),
'entity_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->addForeignKey(
$installer->getFkName('catalog_product_super_link', 'parent_id', 'catalog_product_entity', 'entity_id'),
'parent_id',
$installer->getTable('catalog_product_entity'),
'entity_id',
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE,
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
)
->setComment('Catalog Product Super Link Table');
Expand Down
Loading

0 comments on commit d085f88

Please sign in to comment.