forked from kol/BlogMatch
34 lines
503 B
PHP
34 lines
503 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateTheClassTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('TheClass', function(Blueprint $table)
|
|
{
|
|
$table->integer('CID', true);
|
|
$table->string('name', 50)->comment('類別名稱');
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('TheClass');
|
|
}
|
|
|
|
}
|