partkeepr

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

Version20170113203042.php (663B)


      1 <?php
      2 
      3 namespace PartKeepr\CoreBundle\DoctrineMigrations;
      4 
      5 use Doctrine\DBAL\Schema\Schema;
      6 
      7 /**
      8  * Sets overageType to a sane default.
      9  */
     10 class Version20170113203042 extends BaseMigration
     11 {
     12     /**
     13      * @param Schema $schema
     14      */
     15     public function up(Schema $schema)
     16     {
     17         $this->performDatabaseUpgrade();
     18         $adjustValueTypesSQL = "UPDATE ProjectPart SET overageType = 'absolute' where overageType = ''";
     19         $this->addSql($adjustValueTypesSQL);
     20     }
     21 
     22     /**
     23      * @param Schema $schema
     24      */
     25     public function down(Schema $schema)
     26     {
     27         // this down() migration is auto-generated, please modify it to your needs
     28     }
     29 }