PageRenderTime 54ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/src/OroCRM/Bundle/SalesBundle/Migrations/Schema/v1_2/OroCRMSalesBundle.php

https://github.com/jrcollado1987/crm
PHP | 22 lines | 16 code | 3 blank | 3 comment | 0 complexity | a9cc294e34e249bd183ff486e0aa93f1 MD5 | raw file
  1. <?php
  2. namespace OroCRM\Bundle\SalesBundle\Migrations\Schema\v1_2;
  3. use Doctrine\DBAL\Schema\Schema;
  4. use Doctrine\DBAL\Types\Type;
  5. use Oro\Bundle\MigrationBundle\Migration\Migration;
  6. use Oro\Bundle\MigrationBundle\Migration\QueryBag;
  7. class OroCRMSalesBundle implements Migration
  8. {
  9. /**
  10. * @inheritdoc
  11. */
  12. public function up(Schema $schema, QueryBag $queries)
  13. {
  14. $table = $schema->getTable('orocrm_sales_opportunity');
  15. $table->getColumn('probability')->setType(Type::getType('percent'));
  16. $table->getColumn('budget_amount')->setType(Type::getType('money'));
  17. $table->getColumn('close_revenue')->setType(Type::getType('money'));
  18. }
  19. }