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