Version20170108122512.php (681B)
1 <?php 2 3 namespace PartKeepr\CoreBundle\DoctrineMigrations; 4 5 use Doctrine\DBAL\Schema\Schema; 6 7 /** 8 * Ensures that all existing parts to be no meta parts since prior to that version, no meta parts existed. 9 */ 10 class Version20170108122512 extends BaseMigration 11 { 12 /** 13 * @param Schema $schema 14 */ 15 public function up(Schema $schema) 16 { 17 $this->performDatabaseUpgrade(); 18 $noMetaPartSQL = 'UPDATE Part SET metaPart = false'; 19 $this->addSql($noMetaPartSQL); 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 }