Merge pull request #1016 from openclassify/muammertop

#3628 index will added
This commit is contained in:
Dia Shalabi 2021-04-02 16:43:24 +03:00 committed by GitHub
commit 8717dbef2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?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('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');
});
}
}

View File

@ -75,4 +75,9 @@ class AdvPresenter extends EntryPresenter
$advModel = new AdvModel();
return $advModel->priceFormat($adv->getObject());
}
public function detailUrl()
{
return $this->getObject()->getAdvDetailLinkByModel($this);
}
}

View File

@ -0,0 +1,19 @@
<?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('sort_order');
});
}
}

View File

@ -0,0 +1,18 @@
<?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');
});
}
}