Luciano Andrade 7 سال پیش
والد
کامیت
c91017e14a
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      app/DoctrineMigrations/Version20180221174411.php

+ 2 - 1
app/DoctrineMigrations/Version20180221174411.php

@@ -19,6 +19,8 @@ class Version20180221174411 extends MigrationsBase
 	
         $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) {
 		$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('ALTER TABLE service_port ADD CONSTRAINT FK_8DD2E92069FFAD89 FOREIGN KEY (olt_id) REFERENCES olt (id)');
@@ -56,7 +58,6 @@ 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");
 
     }