From 056e7a60500d1295b8a9243bc6914df5a20d17b1 Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Fri, 27 Nov 2020 10:48:55 +0300 Subject: [PATCH] #2471 Added migrations for index to entry_id --- ....module.advs__alter_index_to_all_table.php | 40 ++++++++++++ ....module.cats__alter_index_to_all_table.php | 40 ++++++++++++ ...ule.location__alter_index_to_all_table.php | 64 +++++++++++++++++++ 3 files changed, 144 insertions(+) create mode 100644 addons/default/visiosoft/advs-module/migrations/2020_11_27_072549_visiosoft.module.advs__alter_index_to_all_table.php create mode 100644 addons/default/visiosoft/cats-module/migrations/2020_11_27_073512_visiosoft.module.cats__alter_index_to_all_table.php create mode 100644 addons/default/visiosoft/location-module/migrations/2020_11_27_071503_visiosoft.module.location__alter_index_to_all_table.php diff --git a/addons/default/visiosoft/advs-module/migrations/2020_11_27_072549_visiosoft.module.advs__alter_index_to_all_table.php b/addons/default/visiosoft/advs-module/migrations/2020_11_27_072549_visiosoft.module.advs__alter_index_to_all_table.php new file mode 100644 index 000000000..1fb164022 --- /dev/null +++ b/addons/default/visiosoft/advs-module/migrations/2020_11_27_072549_visiosoft.module.advs__alter_index_to_all_table.php @@ -0,0 +1,40 @@ +index('entry_id'); + }); + + Schema::table('advs_productoptions_value_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('advs_productoptions_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + + Schema::table('advs_productoptions_value_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + } +} diff --git a/addons/default/visiosoft/cats-module/migrations/2020_11_27_073512_visiosoft.module.cats__alter_index_to_all_table.php b/addons/default/visiosoft/cats-module/migrations/2020_11_27_073512_visiosoft.module.cats__alter_index_to_all_table.php new file mode 100644 index 000000000..a0531a7d8 --- /dev/null +++ b/addons/default/visiosoft/cats-module/migrations/2020_11_27_073512_visiosoft.module.cats__alter_index_to_all_table.php @@ -0,0 +1,40 @@ +index('entry_id'); + }); + + Schema::table('cats_placeholderforsearch_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('cats_category_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + + Schema::table('cats_placeholderforsearch_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + } +} diff --git a/addons/default/visiosoft/location-module/migrations/2020_11_27_071503_visiosoft.module.location__alter_index_to_all_table.php b/addons/default/visiosoft/location-module/migrations/2020_11_27_071503_visiosoft.module.location__alter_index_to_all_table.php new file mode 100644 index 000000000..51229f5c4 --- /dev/null +++ b/addons/default/visiosoft/location-module/migrations/2020_11_27_071503_visiosoft.module.location__alter_index_to_all_table.php @@ -0,0 +1,64 @@ +index('entry_id'); + }); + + Schema::table('location_countries_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + + Schema::table('location_districts_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + + Schema::table('location_neighborhoods_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + + Schema::table('location_village_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('location_cities_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + + Schema::table('location_countries_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + + Schema::table('location_districts_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + + Schema::table('location_neighborhoods_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + + Schema::table('location_village_translations', function (Blueprint $table) { + $table->index('entry_id'); + }); + } +}