-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GRKAS1-29: Add configuration to customize ProductUnitPrecision (#41)
- Loading branch information
Showing
8 changed files
with
173 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace Oro\Bundle\AkeneoBundle\Migrations\Schema\v1_7; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Oro\Bundle\MigrationBundle\Migration\Migration; | ||
use Oro\Bundle\MigrationBundle\Migration\QueryBag; | ||
|
||
/** | ||
* @SuppressWarnings(PHPMD.TooManyMethods) | ||
* @SuppressWarnings(PHPMD.ExcessiveClassLength) | ||
*/ | ||
class OroAkeneoMigration implements Migration | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getMigrationVersion() | ||
{ | ||
return 'v1_7'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function up(Schema $schema, QueryBag $queries) | ||
{ | ||
/* Tables generation */ | ||
$this->updateOroIntegrationTransportTable($schema); | ||
} | ||
|
||
/** | ||
* Create oro_integration_transport table | ||
*/ | ||
protected function updateOroIntegrationTransportTable(Schema $schema) | ||
{ | ||
$table = $schema->getTable('oro_integration_transport'); | ||
$table->addColumn('akeneo_product_unit_attribute', 'string', ['notnull' => false, 'length' => 255]); | ||
$table->addColumn('akeneo_unit_precision_attr', 'string', ['notnull' => false, 'length' => 255]); | ||
} | ||
} |
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