Code Duplication    Length = 12-13 lines in 2 locations

src/OroCRM/Bundle/MarketingListBundle/Migrations/Schema/v1_2/OroCRMMarketingListBundle.php 1 location

@@ 10-21 (lines=12) @@
7
use Oro\Bundle\MigrationBundle\Migration\Migration;
8
use Oro\Bundle\MigrationBundle\Migration\QueryBag;
9
10
class OroCRMMarketingListBundle implements Migration
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function up(Schema $schema, QueryBag $queries)
16
    {
17
        $table = $schema->getTable('orocrm_marketing_list_item');
18
        $table->getColumn('last_contacted_at')->setNotnull(false);
19
        $table->getColumn('contacted_times')->setNotnull(false);
20
    }
21
}
22

src/OroCRM/Bundle/SalesBundle/Migrations/Schema/v1_24/UpdateLeadFirstLastName.php 1 location

@@ 10-22 (lines=13) @@
7
use Oro\Bundle\MigrationBundle\Migration\Migration;
8
use Oro\Bundle\MigrationBundle\Migration\QueryBag;
9
10
class UpdateLeadFirstLastName implements Migration
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function up(Schema $schema, QueryBag $queries)
16
    {
17
        $leadTable = $schema->getTable('orocrm_sales_lead');
18
19
        $leadTable->getColumn('last_name')->setNotnull(false);
20
        $leadTable->getColumn('first_name')->setNotnull(false);
21
    }
22
}
23