浏览代码

add post index

xielin 5 年之前
父节点
当前提交
2f0c9f0428
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      database/migrations/2019_08_13_180703_add_inx_weight_suggest_to_table_post.php

+ 1 - 1
database/migrations/2019_08_13_180703_add_inx_weight_suggest_to_table_post.php

@@ -14,7 +14,7 @@ class AddInxWeightSuggestToTablePost extends Migration
     public function up()
     {
         Schema::table('post', function (Blueprint $table) {
-            $table->index(['is_suggest', 'weight'], 'idx_suggest_weight');
+            $table->index('deleted_at', 'idx_deleted_at');
         });
     }