浏览代码

:bug: table_id 列名不存在

visuddhinanda@gmail.com 4 年之前
父节点
当前提交
c7a60d2a98
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      database/migrations/2022_05_22_143716_create_tag_maps_table.php

+ 1 - 1
database/migrations/2022_05_22_143716_create_tag_maps_table.php

@@ -21,7 +21,7 @@ class CreateTagMapsTable extends Migration
             $table->timestamp('created_at')->useCurrent()->index();
 			$table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate()->index();
 
-            $table->unique(['table_name','table_id','tag_id']);
+            $table->unique(['table_name','anchor_id','tag_id']);
 
         });
     }