mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-01-07 03:16:46 +08:00
取消索引创建迁移文件
This commit is contained in:
parent
20871efb5c
commit
58da33d3c9
436
composer.lock
generated
436
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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');
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user