<?php

namespace Oro\Bundle\DataAuditBundle\Migrations\Schema\v1_7;

use Doctrine\DBAL\Schema\Schema;
use Oro\Bundle\MigrationBundle\Migration\Migration;
use Oro\Bundle\MigrationBundle\Migration\QueryBag;

class AddCollectionTypeColumn implements Migration
{
    /**
     * {@inheritdoc}
     */
    public function up(Schema $schema, QueryBag $queries)
    {
        $auditFieldTable = $schema->createTable('oro_audit_field');
        $auditFieldTable->addColumn('collection_diffs', 'json_array', [
            'notnull' => false,
            'comment' => '(DC2Type:json_array)',
        ]);
    }
}

<?php

namespace Oro\Bundle\DataAuditBundle\Migrations\Schema\v1_7;

use Doctrine\DBAL\Schema\Schema;
use Oro\Bundle\MigrationBundle\Migration\Migration;
use Oro\Bundle\MigrationBundle\Migration\QueryBag;

class AddCollectionTypeColumn implements Migration
{
    /**
     * {@inheritdoc}
     */
    public function up(Schema $schema, QueryBag $queries)
    {
        $auditFieldTable = $schema->getTable('oro_audit_field');
        $auditFieldTable->addColumn('collection_diffs', 'json_array', [
            'notnull' => false,
            'comment' => '(DC2Type:json_array)',
        ]);
    }
}

Migrate data audit command to be executed in new message queue
BAP-10771: Migrate data audit command to be executed in new message queue

- fix tests
