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'); + }); + } +}