#3628 index will added

This commit is contained in:
Muammer Top 2021-03-31 14:35:24 +03:00
parent ee5ccc67c1
commit 8239d8fa5e
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Anomaly\Streams\Platform\Database\Migration\Migration;
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');
$table->index('country_id');
$table->index('city');
$table->index('finish_at');
$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,24 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleCatsAddIndexTable extends Migration
{
public function up()
{
Schema::table('cats_category', function (Blueprint $table) {
$table->index('deleted_at');
$table->index('slug');
$table->index('parent_category_id');
$table->index('icon_id');
$table->index('cat1');
$table->index('country_id');
$table->index('city');
$table->index('finish_at');
$table->index('status');
$table->index('count_show_ad');
});
}
}