Version20170108143802.php (688B)
1 <?php 2 3 namespace PartKeepr\CoreBundle\DoctrineMigrations; 4 5 use Doctrine\DBAL\Schema\Schema; 6 7 /** 8 * Updates the value type to "numeric" where no value type is set. 9 */ 10 class Version20170108143802 extends BaseMigration 11 { 12 /** 13 * @param Schema $schema 14 */ 15 public function up(Schema $schema) 16 { 17 $this->performDatabaseUpgrade(); 18 $adjustValueTypesSQL = "UPDATE PartParameter SET valueType = 'numeric' where valueType = ''"; 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 }