mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
#2471 Added migrations for index to entry_id
This commit is contained in:
parent
c31c0c74f6
commit
056e7a6050
@ -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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user