-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- dropped unique index on integration ID on SalesChannel to allow a S…
…alesChannelGroup with multiple SC's be connected to the integration - moved some fields around in the integration settings form - updated the OroCommerce integration event listener to take into account the integration is now linked to a SalesChannelGroup and not a single SalesChannel
- Loading branch information
Showing
3 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/Marello/Bundle/SalesBundle/Migrations/Schema/v1_3/MarelloSalesBundle.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace Marello\Bundle\SalesBundle\Migrations\Schema\v1_3; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Oro\Bundle\MigrationBundle\Migration\Migration; | ||
use Oro\Bundle\MigrationBundle\Migration\QueryBag; | ||
|
||
/** | ||
* @SuppressWarnings(PHPMD.TooManyMethods) | ||
* @SuppressWarnings(PHPMD.ExcessiveClassLength) | ||
*/ | ||
class MarelloSalesBundle implements Migration | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function up(Schema $schema, QueryBag $queries) | ||
{ | ||
/** Tables generation **/ | ||
$this->modifyMarelloSalesSalesChannelTable($schema); | ||
} | ||
|
||
/** | ||
* @param Schema $schema | ||
*/ | ||
protected function modifyMarelloSalesSalesChannelTable(Schema $schema) | ||
{ | ||
$table = $schema->getTable('marello_sales_sales_channel'); | ||
if ($table->hasIndex('UNIQ_75C456C9F5B7AF7511')) { | ||
$table->dropIndex('UNIQ_75C456C9F5B7AF7511'); | ||
} | ||
} | ||
|
||
} |