mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
Merge pull request #1016 from openclassify/muammertop
#3628 index will added
This commit is contained in:
commit
8717dbef2c
@ -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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -75,4 +75,9 @@ class AdvPresenter extends EntryPresenter
|
|||||||
$advModel = new AdvModel();
|
$advModel = new AdvModel();
|
||||||
return $advModel->priceFormat($adv->getObject());
|
return $advModel->priceFormat($adv->getObject());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function detailUrl()
|
||||||
|
{
|
||||||
|
return $this->getObject()->getAdvDetailLinkByModel($this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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');
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user