|
|
@@ -1,35 +0,0 @@
|
|
|
-<?php
|
|
|
-
|
|
|
-use Illuminate\Database\Migrations\Migration;
|
|
|
-use Illuminate\Database\Schema\Blueprint;
|
|
|
-use Illuminate\Support\Facades\Schema;
|
|
|
-
|
|
|
-class CreateSentenceAttachmentsTable extends Migration
|
|
|
-{
|
|
|
- /**
|
|
|
- * Run the migrations.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function up()
|
|
|
- {
|
|
|
- Schema::create('sentence_attachments', function (Blueprint $table) {
|
|
|
- $table->id();
|
|
|
- $table->uuid('uid')->unique();
|
|
|
- $table->uuid('sentence_id')->index();
|
|
|
- $table->uuid('attachment_id')->index();
|
|
|
- $table->uuid('editor_id')->index();
|
|
|
- $table->timestamps();
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Reverse the migrations.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function down()
|
|
|
- {
|
|
|
- Schema::dropIfExists('sentence_attachments');
|
|
|
- }
|
|
|
-}
|