File: /home/armgroup/libs/database/migrations/2021_08_29_141840_create_shipping_prices_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateShippingPricesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('shipping_prices', function (Blueprint $table) {
$table->id();
$table->unsignedInteger('from');
$table->unsignedInteger('up_to')->nullable()->default(null);
$table->unsignedInteger('my_province_courier')->nullable()->default(null);
$table->unsignedInteger('my_province_express')->nullable()->default(null);
$table->unsignedInteger('neighbor_province_courier')->nullable()->default(null);
$table->unsignedInteger('neighbor_province_express')->nullable()->default(null);
$table->unsignedInteger('not_neighbor_province_courier')->nullable()->default(null);
$table->unsignedInteger('not_neighbor_province_express')->nullable()->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('shipping_prices');
}
}