33 lines
982 B
PHP
33 lines
982 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
Schema::create('ongkir', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('province_id');
|
|
$table->string('province_name');
|
|
$table->string('city_id');
|
|
$table->string('city_name');
|
|
$table->decimal('jne_reg', 10, 2);
|
|
$table->decimal('jne_oke', 10, 2);
|
|
$table->decimal('jne_yes', 10, 2);
|
|
$table->decimal('pos_reg', 10, 2);
|
|
$table->decimal('pos_express', 10, 2);
|
|
$table->decimal('tiki_reg', 10, 2);
|
|
$table->decimal('tiki_eco', 10, 2);
|
|
$table->decimal('tiki_express', 10, 2);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('ongkir');
|
|
}
|
|
};
|