| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateRelationsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('relations', function (Blueprint $table) {
- $table->uuid('id')->primary()->default(DB::raw('uuid_generate_v1mc()'));
- $table->string('name',256)->unique();
- $table->json('case')->nullable();
- $table->json('to')->nullable();
- $table->uuid('editor_id');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('relations');
- }
- }
|