-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/dev/2.0' into 2.0
- Loading branch information
Showing
18 changed files
with
195 additions
and
53 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
33 changes: 33 additions & 0 deletions
33
src/Oro/Bundle/CRMBundle/Migrations/Schema/v1_3_1/WorkflowItemEntityClass.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,33 @@ | ||
<?php | ||
|
||
namespace Oro\Bundle\CRMBundle\Migrations\Schema\v1_3_1; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
|
||
use Oro\Bundle\InstallerBundle\Migration\UpdateTableFieldQuery; | ||
use Oro\Bundle\MigrationBundle\Migration\Migration; | ||
use Oro\Bundle\MigrationBundle\Migration\QueryBag; | ||
|
||
class WorkflowItemEntityClass implements Migration | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function up(Schema $schema, QueryBag $queries) | ||
{ | ||
self::updateWorkflowItemEntityClass($queries); | ||
} | ||
|
||
/** | ||
* @param QueryBag $queries | ||
*/ | ||
public static function updateWorkflowItemEntityClass(QueryBag $queries) | ||
{ | ||
$queries->addQuery(new UpdateTableFieldQuery( | ||
'oro_workflow_item', | ||
'entity_class', | ||
'OroCRM', | ||
'Oro' | ||
)); | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/Oro/Bundle/CRMBundle/Migrations/Schema/v1_4/NotificationEntityName.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,33 @@ | ||
<?php | ||
|
||
namespace Oro\Bundle\CRMBundle\Migrations\Schema\v1_4; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
|
||
use Oro\Bundle\InstallerBundle\Migration\UpdateTableFieldQuery; | ||
use Oro\Bundle\MigrationBundle\Migration\Migration; | ||
use Oro\Bundle\MigrationBundle\Migration\QueryBag; | ||
|
||
class NotificationEntityName implements Migration | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function up(Schema $schema, QueryBag $queries) | ||
{ | ||
self::updateTaggingEntityName($queries); | ||
} | ||
|
||
/** | ||
* @param QueryBag $queries | ||
*/ | ||
public static function updateTaggingEntityName(QueryBag $queries) | ||
{ | ||
$queries->addQuery(new UpdateTableFieldQuery( | ||
'oro_notification_email_notif', | ||
'entity_name', | ||
'OroCRM', | ||
'Oro' | ||
)); | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/Oro/Bundle/CRMBundle/Migrations/Schema/v1_5/MigrateNavigationItems.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,34 @@ | ||
<?php | ||
|
||
namespace Oro\Bundle\CRMBundle\Migrations\Schema\v1_5; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Oro\Bundle\InstallerBundle\Migration\UpdateTableFieldQuery; | ||
use Oro\Bundle\MigrationBundle\Migration\Migration; | ||
use Oro\Bundle\MigrationBundle\Migration\QueryBag; | ||
|
||
class MigrateNavigationItems implements Migration | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function up(Schema $schema, QueryBag $queries) | ||
{ | ||
if (!$schema->hasTable('oro_navigation_item')) { | ||
return; | ||
} | ||
|
||
$queries->addQuery(new UpdateTableFieldQuery( | ||
'oro_navigation_item', | ||
'title', | ||
'orocrm', | ||
'oro' | ||
)); | ||
$queries->addQuery(new UpdateTableFieldQuery( | ||
'oro_navigation_history', | ||
'title', | ||
'orocrm', | ||
'oro' | ||
)); | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/Oro/Bundle/CRMBundle/Migrations/Schema/v1_6/ReminderEntityName.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,33 @@ | ||
<?php | ||
|
||
namespace Oro\Bundle\CRMBundle\Migrations\Schema\v1_6; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
|
||
use Oro\Bundle\InstallerBundle\Migration\UpdateTableFieldQuery; | ||
use Oro\Bundle\MigrationBundle\Migration\Migration; | ||
use Oro\Bundle\MigrationBundle\Migration\QueryBag; | ||
|
||
class ReminderEntityName implements Migration | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function up(Schema $schema, QueryBag $queries) | ||
{ | ||
self::updateRelatedEntityClassName($queries); | ||
} | ||
|
||
/** | ||
* @param QueryBag $queries | ||
*/ | ||
public static function updateRelatedEntityClassName(QueryBag $queries) | ||
{ | ||
$queries->addQuery(new UpdateTableFieldQuery( | ||
'oro_reminder', | ||
'related_entity_classname', | ||
'OroCRM', | ||
'Oro' | ||
)); | ||
} | ||
} |
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
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
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
30 changes: 30 additions & 0 deletions
30
src/Oro/Bundle/MagentoBundle/Migrations/Schema/v1_46/SetCascadeDeleteToOrderCartFK.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,30 @@ | ||
<?php | ||
|
||
namespace Oro\Bundle\MagentoBundle\Migrations\Schema\v1_46; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
|
||
use Oro\Bundle\MigrationBundle\Migration\Migration; | ||
use Oro\Bundle\MigrationBundle\Migration\QueryBag; | ||
|
||
class SetCascadeDeleteToOrderCartFK implements Migration | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function up(Schema $schema, QueryBag $queries) | ||
{ | ||
$table = $schema->getTable('orocrm_magento_order'); | ||
$fkName = 'FK_4D09F3051AD5CDBF'; | ||
$fk = $table->getForeignKey($fkName); | ||
if ($fk->getOption('onDelete') !== 'CASCADE') { | ||
$table->removeForeignKey($fkName); | ||
$table->addForeignKeyConstraint( | ||
$schema->getTable('orocrm_magento_cart'), | ||
['cart_id'], | ||
['id'], | ||
['onDelete' => 'CASCADE'] | ||
); | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.