fix #1
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateBelongTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('Belong', function(Blueprint $table)
|
||||
{
|
||||
$table->string('RID', 50);
|
||||
$table->integer('C_ID')->index('C_ID');
|
||||
$table->date('startExclussiveDate')->nullable()->comment('排外起始時間');
|
||||
$table->date('endExclussiveDate')->nullable()->comment('排外終止時間');
|
||||
$table->primary(['RID','C_ID']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('Belong');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user