for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OroCRM\Bundle\SalesBundle\Migrations\Schema\v1_25_1;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Types\Type;
use Oro\Bundle\MigrationBundle\Migration\Migration;
use Oro\Bundle\MigrationBundle\Migration\QueryBag;
use Oro\Bundle\MigrationBundle\Migration\ParametrizedSqlMigrationQuery;
class B2BStatisticsWidgetName implements Migration
{
/**
* {@inheritdoc}
*/
public function up(Schema $schema, QueryBag $queries)
$queries->addQuery(
new ParametrizedSqlMigrationQuery(
'UPDATE oro_dashboard_widget SET name = :newName WHERE name = :oldName',
['oldName' => 'b2b_statistics_widget', 'newName' => 'business_sales_channel_statistics'],
['oldName' => Type::STRING, 'newName' => Type::STRING]
)
);
}