| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateLoveLiveTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('love_live', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->bigInteger('uid')->index()->comment('用户');
- $table->binary('name')->comment('名');
- $table->string('file',100)->nullable()->comment('图片');
- $table->string('description')->nullable()->comment('描述');
- $table->integer('size')->default(0)->comment('size');
- $table->integer('sort')->default(0)->comment('sort');
- $table->string('password')->nullable();
- $table->tinyInteger('status')->default(0)->comment('0');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('love_live');
- }
- }
|