From fbb42b27e6bcf5fa642c3ca642a09ef7caa6175e Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Wed, 15 Jun 2016 01:02:19 -0700 Subject: [PATCH] Removed an obsolete database index. --- .../2016_06_15_080045_fix_cache_table_2.php | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 database/migrations/2016_06_15_080045_fix_cache_table_2.php diff --git a/database/migrations/2016_06_15_080045_fix_cache_table_2.php b/database/migrations/2016_06_15_080045_fix_cache_table_2.php new file mode 100644 index 00000000..107b9e93 --- /dev/null +++ b/database/migrations/2016_06_15_080045_fix_cache_table_2.php @@ -0,0 +1,49 @@ +. + */ + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class FixCacheTable2 extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::table('cache', function (Blueprint $table) { + $table->dropIndex('cache_key_index'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('cache', function (Blueprint $table) { + $table->index('key'); + }); + } +}