mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
#3628 index will added
This commit is contained in:
parent
ee5ccc67c1
commit
8239d8fa5e
@ -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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user