Luciano Andrade 7 年之前
父节点
当前提交
42c6b88852

文件差异内容过多而无法显示
+ 1 - 1
app/DoctrineMigrations/Templates20180221174411/template-action-2018-02-26.yml


+ 1 - 3
app/DoctrineMigrations/Version20180221174411.php

@@ -19,7 +19,6 @@ class Version20180221174411 extends MigrationsBase
 	
 	
         $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
         $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
 
 
-	$this->executeYaml(__DIR__ . "/Templates20180221174411", "template-action-2018-02-26.yml");
 
 
 	if (!$schema->hasTable('service_port') == true) {
 	if (!$schema->hasTable('service_port') == true) {
 		$this->addSql('CREATE TABLE service_port (id INT AUTO_INCREMENT NOT NULL, olt_id BIGINT DEFAULT NULL, onu_id INT DEFAULT NULL, number INT DEFAULT 0 NOT NULL, gemport INT DEFAULT 0 NOT NULL, vlan INT DEFAULT 0 NOT NULL, type VARCHAR(255) NOT NULL, INDEX IDX_8DD2E92069FFAD89 (olt_id), INDEX IDX_8DD2E920AB83998C (onu_id), UNIQUE INDEX sp_unique (olt_id, number), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
 		$this->addSql('CREATE TABLE service_port (id INT AUTO_INCREMENT NOT NULL, olt_id BIGINT DEFAULT NULL, onu_id INT DEFAULT NULL, number INT DEFAULT 0 NOT NULL, gemport INT DEFAULT 0 NOT NULL, vlan INT DEFAULT 0 NOT NULL, type VARCHAR(255) NOT NULL, INDEX IDX_8DD2E92069FFAD89 (olt_id), INDEX IDX_8DD2E920AB83998C (onu_id), UNIQUE INDEX sp_unique (olt_id, number), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
@@ -56,8 +55,7 @@ class Version20180221174411 extends MigrationsBase
 		}
 		}
 	}
 	}
 
 
-
-        // this up() migration is auto-generated, please modify it to your needs
+	$this->executeYaml(__DIR__ . "/Templates20180221174411", "template-action-2018-02-26.yml");
 
 
     }
     }