Parcourir la source

260402 最新消息-雙語系影片欄位

OMEGA\lulufj.ho il y a 4 jours
Parent
révision
2b95ce3253

+ 25
- 0
database/migrations/2026_04_01_145408_alter_esg_paragraphs_column.php Voir le fichier

@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6
+
7
+return new class extends Migration
8
+{
9
+    /**
10
+     * Run the migrations.
11
+     */
12
+    public function up(): void
13
+    {
14
+        Schema::table('news_paragraphs', function (Blueprint $table) {
15
+            $table->text('link')->nullable()->change();
16
+        });
17
+    }
18
+
19
+    public function down(): void
20
+    {
21
+        Schema::table('news_paragraphs', function (Blueprint $table) {
22
+            $table->string('link', 255)->nullable()->change();
23
+        });
24
+    }
25
+};