visuddhinanda преди 2 години
родител
ревизия
ef089b2966
променени са 1 файла, в които са добавени 35 реда и са изтрити 0 реда
  1. 35 0
      database/migrations/2023_09_17_113229_add_tpl_in_discussions.php

+ 35 - 0
database/migrations/2023_09_17_113229_add_tpl_in_discussions.php

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