/src/OroCRM/Bundle/SalesBundle/Migrations/Schema/v1_2/OroCRMSalesBundle.php
PHP | 22 lines | 16 code | 3 blank | 3 comment | 0 complexity | a9cc294e34e249bd183ff486e0aa93f1 MD5 | raw file
- <?php
- namespace OroCRM\Bundle\SalesBundle\Migrations\Schema\v1_2;
- use Doctrine\DBAL\Schema\Schema;
- use Doctrine\DBAL\Types\Type;
- use Oro\Bundle\MigrationBundle\Migration\Migration;
- use Oro\Bundle\MigrationBundle\Migration\QueryBag;
- class OroCRMSalesBundle implements Migration
- {
- /**
- * @inheritdoc
- */
- public function up(Schema $schema, QueryBag $queries)
- {
- $table = $schema->getTable('orocrm_sales_opportunity');
- $table->getColumn('probability')->setType(Type::getType('percent'));
- $table->getColumn('budget_amount')->setType(Type::getType('money'));
- $table->getColumn('close_revenue')->setType(Type::getType('money'));
- }
- }