| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateGiftBoxesTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('gift_boxes', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('attire_id')->default('0')->comment('装扮ID');
- $table->string('level')->default('')->comment('级别');
- $table->timestamps();
- $table->softDeletes();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('gift_boxes');
- }
- }
|