|
|
@@ -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
|
+};
|