| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreatePlayerTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- //
- Schema::create('players', function(Blueprint $table){
- $table->increments('id')->comment('选手id');
- $table->integer('group_id')->unsigned()->comment('分组id');
- $table->string('name', 120)->comment('选手名称');
- $table->string('no', 120)->comment('选手编号');
- $table->string('image')->comment('选手头像或图片');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- //
- Schema::drop('players');
- }
- }
|