#2471 Added migrations for index to entry_id

This commit is contained in:
Muammer Top 2020-11-27 10:48:55 +03:00
parent c31c0c74f6
commit 056e7a6050
3 changed files with 144 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleAdvsAlterIndexToAllTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
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');
});
}
/**
* 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');
});
}
}

View File

@ -0,0 +1,40 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleCatsAlterIndexToAllTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('cats_category_translations', function (Blueprint $table) {
$table->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');
});
}
}

View File

@ -0,0 +1,64 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleLocationAlterIndexToAllTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
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');
});
}
/**
* 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');
});
}
}