소스 검색

Merge branch 'hotfix-migrate-profile' into 'master'

Fixed migration profile

See merge request interlink-sa/flowdat3/modules/ftth!163
Jean Sumara Leopoldo 5 년 전
부모
커밋
b6c2cc1c26
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/DoctrineMigrations/Version20171019130515.php

+ 1 - 1
app/DoctrineMigrations/Version20171019130515.php

@@ -20,7 +20,7 @@ class Version20171019130515 extends AbstractMigration
         $this->addsql("UPDATE nap SET tenancy_id = " . $base . " WHERE isnull(tenancy_id)");
         $this->addsql("UPDATE olt SET tenancy_id = " . $base . " WHERE isnull(tenancy_id)");
         $this->addsql("UPDATE onu SET tenancy_id = " . $base . " WHERE isnull(tenancy_id)");
-        $this->addsql("UPDATE profile SET tenancy_id = " . $base . " WHERE isnull(tenancy_id)");
+        $this->addsql("UPDATE profile SET tenancy_id = " . $base . " WHERE isnull(tenancy_id) OR id = 1");
         $this->addsql("UPDATE oltmodel SET tenancy_id = " . $base . " WHERE isnull(tenancy_id) or tenancy_id = 0");
         $this->addsql("UPDATE onumodel SET tenancy_id = " . $base . " WHERE isnull(tenancy_id) or tenancy_id = 0");
     }