浏览代码

取消logs 索引

ANG YU 5 年之前
父节点
当前提交
ab91edd010
共有 1 个文件被更改,包括 0 次插入33 次删除
  1. 0 33
      database/migrations/2021_02_04_104419_add_class_created_at_index.php

+ 0 - 33
database/migrations/2021_02_04_104419_add_class_created_at_index.php

@@ -1,33 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-class AddClassCreatedAtIndex extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::table('logs', function (Blueprint $table) {
-            //
-            $table->index(['class', 'created_at']);
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::table('logs', function (Blueprint $table) {
-            $table->dropIndex(['class', 'created_at']);
-        });
-    }
-}