Andrew vor 2 Monaten
Ursprung
Commit
4a3832a3da

+ 22
- 0
database/migrations/2025_11_29_063956_add_columns_from_albums_table.php Datei anzeigen

@@ -0,0 +1,22 @@
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
+    public function up()
10
+    {
11
+        Schema::table('albums', function (Blueprint $table) {
12
+            $table->string('news_img_pc')->comment('列表圖 PC');
13
+        });
14
+    }
15
+
16
+    public function down()
17
+    {
18
+        Schema::table('albums', function (Blueprint $table) {
19
+            $table->dropColumn('news_img_pc');
20
+        });
21
+    }
22
+};