From 8239d8fa5e7c7f219fec8c40fe12966464568e5f Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Wed, 31 Mar 2021 14:35:24 +0300 Subject: [PATCH 1/4] #3628 index will added --- ...visiosoft.module.advs__add_index_table.php | 32 +++++++++++++++++++ ...visiosoft.module.cats__add_index_table.php | 24 ++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 addons/default/visiosoft/advs-module/migrations/2021_03_31_100145_visiosoft.module.advs__add_index_table.php create mode 100644 addons/default/visiosoft/cats-module/migrations/2021_03_31_104729_visiosoft.module.cats__add_index_table.php diff --git a/addons/default/visiosoft/advs-module/migrations/2021_03_31_100145_visiosoft.module.advs__add_index_table.php b/addons/default/visiosoft/advs-module/migrations/2021_03_31_100145_visiosoft.module.advs__add_index_table.php new file mode 100644 index 000000000..5131fe938 --- /dev/null +++ b/addons/default/visiosoft/advs-module/migrations/2021_03_31_100145_visiosoft.module.advs__add_index_table.php @@ -0,0 +1,32 @@ +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'); + }); + } +} diff --git a/addons/default/visiosoft/cats-module/migrations/2021_03_31_104729_visiosoft.module.cats__add_index_table.php b/addons/default/visiosoft/cats-module/migrations/2021_03_31_104729_visiosoft.module.cats__add_index_table.php new file mode 100644 index 000000000..4d5e88e40 --- /dev/null +++ b/addons/default/visiosoft/cats-module/migrations/2021_03_31_104729_visiosoft.module.cats__add_index_table.php @@ -0,0 +1,24 @@ +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'); + }); + } +} From 4ee066aaf063246062116a5d1660a7ea5aa9bb49 Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Wed, 31 Mar 2021 15:10:57 +0300 Subject: [PATCH 2/4] #3628 index will added --- ...visiosoft.module.advs__add_index_table.php | 11 ---------- ...iosoft.module.profile__add_index_table.php | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 addons/default/visiosoft/profile-module/migrations/2021_03_31_121019_visiosoft.module.profile__add_index_table.php diff --git a/addons/default/visiosoft/advs-module/migrations/2021_03_31_100145_visiosoft.module.advs__add_index_table.php b/addons/default/visiosoft/advs-module/migrations/2021_03_31_100145_visiosoft.module.advs__add_index_table.php index 5131fe938..a43320c99 100644 --- a/addons/default/visiosoft/advs-module/migrations/2021_03_31_100145_visiosoft.module.advs__add_index_table.php +++ b/addons/default/visiosoft/advs-module/migrations/2021_03_31_100145_visiosoft.module.advs__add_index_table.php @@ -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'); - }); } } diff --git a/addons/default/visiosoft/profile-module/migrations/2021_03_31_121019_visiosoft.module.profile__add_index_table.php b/addons/default/visiosoft/profile-module/migrations/2021_03_31_121019_visiosoft.module.profile__add_index_table.php new file mode 100644 index 000000000..7ee5a44d6 --- /dev/null +++ b/addons/default/visiosoft/profile-module/migrations/2021_03_31_121019_visiosoft.module.profile__add_index_table.php @@ -0,0 +1,22 @@ +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'); + }); + } +} From 19654ad0d8377cc1170d9755aa61a896b210cafe Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Wed, 31 Mar 2021 15:55:45 +0300 Subject: [PATCH 3/4] #3628 index will added --- ...03_31_104729_visiosoft.module.cats__add_index_table.php | 7 +------ ...31_121019_visiosoft.module.profile__add_index_table.php | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/addons/default/visiosoft/cats-module/migrations/2021_03_31_104729_visiosoft.module.cats__add_index_table.php b/addons/default/visiosoft/cats-module/migrations/2021_03_31_104729_visiosoft.module.cats__add_index_table.php index 4d5e88e40..6ecf73dd2 100644 --- a/addons/default/visiosoft/cats-module/migrations/2021_03_31_104729_visiosoft.module.cats__add_index_table.php +++ b/addons/default/visiosoft/cats-module/migrations/2021_03_31_104729_visiosoft.module.cats__add_index_table.php @@ -13,12 +13,7 @@ class VisiosoftModuleCatsAddIndexTable extends Migration $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'); + $table->index('sort_order'); }); } } diff --git a/addons/default/visiosoft/profile-module/migrations/2021_03_31_121019_visiosoft.module.profile__add_index_table.php b/addons/default/visiosoft/profile-module/migrations/2021_03_31_121019_visiosoft.module.profile__add_index_table.php index 7ee5a44d6..bfa9683c2 100644 --- a/addons/default/visiosoft/profile-module/migrations/2021_03_31_121019_visiosoft.module.profile__add_index_table.php +++ b/addons/default/visiosoft/profile-module/migrations/2021_03_31_121019_visiosoft.module.profile__add_index_table.php @@ -14,9 +14,5 @@ class VisiosoftModuleProfileAddIndexTable extends Migration $table->index('folder_id'); }); - Schema::table('page_link_type_pages_translations', function (Blueprint $table) { - $table->index('entry_id'); - $table->index('locale'); - }); } } From e78178558daa24c326c50a9d1394b4a081c9454c Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Fri, 2 Apr 2021 15:28:09 +0300 Subject: [PATCH 4/4] new-oc navigation edited --- .../default/visiosoft/advs-module/src/Adv/AdvPresenter.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/default/visiosoft/advs-module/src/Adv/AdvPresenter.php b/addons/default/visiosoft/advs-module/src/Adv/AdvPresenter.php index 1f0aaa106..a7b3b3220 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/AdvPresenter.php +++ b/addons/default/visiosoft/advs-module/src/Adv/AdvPresenter.php @@ -75,4 +75,9 @@ class AdvPresenter extends EntryPresenter $advModel = new AdvModel(); return $advModel->priceFormat($adv->getObject()); } + + public function detailUrl() + { + return $this->getObject()->getAdvDetailLinkByModel($this); + } }