PageRenderTime 48ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/src/OroCRM/Bundle/MagentoBundle/Migrations/Schema/v1_4/OroCrmMagentoBundle.php

https://github.com/jrcollado1987/crm
PHP | 21 lines | 14 code | 4 blank | 3 comment | 0 complexity | 59decc56c8a61986f5e99ca9d46f1719 MD5 | raw file
  1. <?php
  2. namespace OroCRM\Bundle\MagentoBundle\Migrations\Schema\v1_4;
  3. use Doctrine\DBAL\Types\Type;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Oro\Bundle\MigrationBundle\Migration\Migration;
  6. use Oro\Bundle\MigrationBundle\Migration\QueryBag;
  7. class OroCrmMagentoBundle implements Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function up(Schema $schema, QueryBag $queries)
  13. {
  14. $table = $schema->getTable('orocrm_magento_order_items');
  15. $table->getColumn('product_options')->setType(Type::getType(Type::TEXT))->setLength(null);
  16. }
  17. }