瀏覽代碼

Fixed migration profile

Jean Sumara 5 年之前
父節點
當前提交
854ccd930f
共有 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 nap SET tenancy_id = " . $base . " WHERE isnull(tenancy_id)");
         $this->addsql("UPDATE olt 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 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 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");
         $this->addsql("UPDATE onumodel SET tenancy_id = " . $base . " WHERE isnull(tenancy_id) or tenancy_id = 0");
     }
     }