Skip to content

Commit

Permalink
Merge branch 'develop' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
24198 committed Feb 14, 2020
2 parents 0019e85 + e6c6ba1 commit 7e9afaa
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

namespace Marello\Bundle\PurchaseOrderBundle\Migrations\Schema\v1_3_2;

use Doctrine\DBAL\Schema\Schema;

use Oro\Bundle\MigrationBundle\Migration\Migration;
use Oro\Bundle\MigrationBundle\Migration\QueryBag;

/**
* @SuppressWarnings(PHPMD.TooManyMethods)
* @SuppressWarnings(PHPMD.ExcessiveClassLength)
*/
class MarelloPurchaseOrderBundle implements Migration
{
/**
* {@inheritdoc}
*/
public function up(Schema $schema, QueryBag $queries)
{
$this->updatePurchaseOrderTable($schema);
}

/**
* @param Schema $schema
* @throws \Doctrine\DBAL\Schema\SchemaException
*/
protected function updatePurchaseOrderTable(Schema $schema)
{
$table = $schema->getTable('marello_purchase_order');
if (!$table->hasColumn('data')) {
$table->addColumn('data', 'json_array', ['notnull' => false, 'comment' => '(DC2Type:json_array)']);
}
}
}

0 comments on commit 7e9afaa

Please sign in to comment.