36 lines
661 B
PHP
36 lines
661 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreatePreferenceTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('Preference', function(Blueprint $table)
|
|
{
|
|
$table->string('CBID', 50)->comment('品牌/代理商帳號');
|
|
$table->string('RID', 50)->index('RID')->comment('達人帳號');
|
|
$table->text('description', 65535)->nullable()->comment('說明');
|
|
$table->primary(['CBID','RID']);
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('Preference');
|
|
}
|
|
|
|
}
|