partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

Version20150608120000.php (562B)


      1 <?php
      2 
      3 namespace PartKeepr\CoreBundle\DoctrineMigrations;
      4 
      5 use Doctrine\DBAL\Schema\Schema;
      6 
      7 class Version20150608120000 extends BaseMigration
      8 {
      9     /**
     10      * @param Schema $schema
     11      */
     12     public function up(Schema $schema)
     13     {
     14         $averagePriceFixSQL = 'UPDATE Part SET averagePrice = 0 WHERE averagePrice IS NULL';
     15         $this->addSql($averagePriceFixSQL);
     16     }
     17 
     18     /**
     19      * @param Schema $schema
     20      */
     21     public function down(Schema $schema)
     22     {
     23         // this down() migration is auto-generated, please modify it to your needs
     24     }
     25 }