mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 04:24:00 +00:00
37 lines
867 B
PHP
37 lines
867 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateDeliveryArrangements extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('delivery_arrangements', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->integer('order_id')->unsigned()->index();
|
|
$table->integer('type')->default(0);
|
|
$table->string('vehicle_no')->nullable();
|
|
$table->timestamps();
|
|
|
|
$table->foreign('order_id')->references('id')->on('orders');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('delivery_arrangements');
|
|
}
|
|
}
|