From 4ee066aaf063246062116a5d1660a7ea5aa9bb49 Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Wed, 31 Mar 2021 15:10:57 +0300 Subject: [PATCH] #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'); + }); + } +}