BlogMatch/database/migrations/2018_07_28_175045_create_FlightNegotiation_table.php

39 lines
856 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateFlightNegotiationTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('FlightNegotiation', function(Blueprint $table)
{
$table->string('ID', 50)->comment('委託編號');
$table->dateTime('negotiationDate')->comment('協商日期');
$table->string('negotiator', 50)->comment('協商者');
$table->date('deliveryDate')->comment('交稿日期');
$table->date('publishDate')->comment('發佈日期');
$table->text('description', 65535)->nullable()->comment('協商說明');
$table->primary(['ID','negotiationDate']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('FlightNegotiation');
}
}