visuddhinanda 2 лет назад
Родитель
Сommit
0aad77a1ed
1 измененных файлов с 34 добавлено и 0 удалено
  1. 34 0
      database/migrations/2023_07_22_003004_add_match_in_relations.php

+ 34 - 0
database/migrations/2023_07_22_003004_add_match_in_relations.php

@@ -0,0 +1,34 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddMatchInRelations extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('relations', function (Blueprint $table) {
+            //
+            $table->json('match')->nullable();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('relations', function (Blueprint $table) {
+            //
+            $table->dropColumn('match');
+        });
+    }
+}