35 lines
570 B
PHP
35 lines
570 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateChooseTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('Choose', function(Blueprint $table)
|
|
{
|
|
$table->string('RID', 50)->comment('達人帳號');
|
|
$table->string('TCID', 50)->index('TCID')->comment('案件編號');
|
|
$table->primary(['RID','TCID']);
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('Choose');
|
|
}
|
|
|
|
}
|