]> BookStack Code Mirror - bookstack/commitdiff
Maintenance: Removed unused comments text column
authorDan Brown <redacted>
Tue, 2 Sep 2025 09:20:10 +0000 (10:20 +0100)
committerDan Brown <redacted>
Tue, 2 Sep 2025 09:20:10 +0000 (10:20 +0100)
Has been redundant and unused for a about a year now.
Closes #4821

database/migrations/2025_09_02_111542_remove_comments_text_column.php [new file with mode: 0644]

diff --git a/database/migrations/2025_09_02_111542_remove_comments_text_column.php b/database/migrations/2025_09_02_111542_remove_comments_text_column.php
new file mode 100644 (file)
index 0000000..8caa05e
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+    /**
+     * Run the migrations.
+     */
+    public function up(): void
+    {
+        Schema::table('comments', function (Blueprint $table) {
+            $table->dropColumn('text');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     */
+    public function down(): void
+    {
+        Schema::table('comments', function (Blueprint $table) {
+            $table->longText('text')->nullable();
+        });
+    }
+};