取消索引创建迁移文件

This commit is contained in:
Wisp X 2022-05-17 16:42:25 +08:00
parent 20871efb5c
commit 58da33d3c9
2 changed files with 225 additions and 249 deletions

436
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,38 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('images', function (Blueprint $table) {
$table->index('key');
$table->index('md5');
$table->index('sha1');
$table->index('created_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('images', function (Blueprint $table) {
$table->dropIndex('images_key_index');
$table->dropIndex('images_md5_index');
$table->dropIndex('images_sha1_index');
$table->dropIndex('images_created_at_index');
});
}
};