BlogMatch/database/migrations/2018_07_26_113627_create_Admin_table.php
2018-07-26 19:38:40 +08:00

39 lines
619 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAdminTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Admin', function(Blueprint $table)
{
$table->string('ID')->primary();
$table->string('password');
$table->string('name');
$table->string('nick_name');
$table->string('email');
$table->string('phone_number');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('Admin');
}
}