#3628 index will added

This commit is contained in:
Muammer Top 2021-03-31 15:10:57 +03:00
parent 8239d8fa5e
commit 4ee066aaf0
2 changed files with 22 additions and 11 deletions

View File

@ -8,12 +8,6 @@ class VisiosoftModuleAdvsAddIndexTable extends Migration
{
public function up()
{
Schema::table('files_files', function (Blueprint $table) {
$table->index('deleted_at');
$table->index('name');
$table->index('folder_id');
});
Schema::table('advs_advs', function (Blueprint $table) {
$table->index('deleted_at');
$table->index('cat1');
@ -23,10 +17,5 @@ class VisiosoftModuleAdvsAddIndexTable extends Migration
$table->index('status');
$table->index('count_show_ad');
});
Schema::table('page_link_type_pages_translations', function (Blueprint $table) {
$table->index('entry_id');
$table->index('locale');
});
}
}

View File

@ -0,0 +1,22 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleProfileAddIndexTable extends Migration
{
public function up()
{
Schema::table('files_files', function (Blueprint $table) {
$table->index('deleted_at');
$table->index('name');
$table->index('folder_id');
});
Schema::table('page_link_type_pages_translations', function (Blueprint $table) {
$table->index('entry_id');
$table->index('locale');
});
}
}