| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateConfigurationsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('configurations', function (Blueprint $table) {
- $table->id();
- $table->string('name')->index()->comment('名称');
- $table->string('value')->index()->comment('值');
- $table->string('description')->nullable()->comment('描述');
- $table->bigInteger('operator')->comment('操作员');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('configurations');
- }
- }
|