更新遷移檔(migration)並新增自動產生的Model

This commit is contained in:
2018-07-29 02:23:20 +08:00
parent d7f4fc67db
commit f4158b8661
51 changed files with 1485 additions and 233 deletions

View File

@@ -0,0 +1,33 @@
<?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');
}
}