12345678910111213141516171819202122232425262728293031323334 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateAdminUserTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::table("admin_user",function (Blueprint $table){
- $table->increments('id');
- $table->string("username",32)->unique();
- $table->string("password",128);
- $table->integer("logtime");
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- //
- }
- }
|