File: /var/www/ipsremont-demo/database/migrations/2021_03_17_144403_update_parts_analogs_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdatePartsAnalogsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('parts_analogs', function (Blueprint $table) {
$table->dropColumn('part_id');
$table->dropColumn('analog_id');
$table->string('part_external_id', 50);
$table->string('analog_external_id', 50);
$table->index('part_external_id');
$table->index('analog_external_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}