forked from kol/BlogMatch
35 lines
586 B
PHP
35 lines
586 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateBeClassifiedAsTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('BeClassifiedAs', function(Blueprint $table)
|
|
{
|
|
$table->string('CBID', 50)->comment('廠商帳號');
|
|
$table->integer('CID')->index('CID')->comment('分類ID');
|
|
$table->primary(['CBID','CID']);
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('BeClassifiedAs');
|
|
}
|
|
|
|
}
|