| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateLoveSettingsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('love_settings', function (Blueprint $table) {
- $table->increments('id');
- $table->string('name',30);
- $table->string('key',100);
- $table->string('value');
- $table->string('description')->nullable();
- $table->timestamps();
- $table->comment = '设置表';
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('love_settings');
- }
- }
|