forked from kol/BlogMatch
fix #1
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreatePriceNegotiationTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('PriceNegotiation', function(Blueprint $table)
|
||||
{
|
||||
$table->string('ID', 50)->comment('委託編號');
|
||||
$table->dateTime('negotiationDate')->comment('議價日期');
|
||||
$table->string('negotiator', 50)->comment('議價者');
|
||||
$table->string('itemName', 50)->nullable()->comment('物品名稱');
|
||||
$table->integer('itemValue')->nullable()->comment('物品價值');
|
||||
$table->integer('price')->nullable()->comment('議價金額');
|
||||
$table->text('description', 65535)->nullable()->comment('議價說明');
|
||||
$table->primary(['ID','negotiationDate']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('PriceNegotiation');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user