Merge pull request #831 from openclassify/muammertop

#2471 Added migrations for index to entry_id
This commit is contained in:
Fatih Alp 2020-11-27 15:03:00 +03:00 committed by GitHub
commit d775f313a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleAdvsAlterIndexToAllTable extends Migration
{
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');
});
}
}

View File

@ -0,0 +1,19 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleCatsAlterIndexToAllTable extends Migration
{
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');
});
}
}

View File

@ -0,0 +1,31 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleLocationAlterIndexToAllTable extends Migration
{
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');
});
}
}