CodeCommitAccess+1-at-632418466995 преди 2 седмици
родител
ревизия
b323b3a99f

+ 1
- 1
database/migrations/2025_09_04_073524_create_news_table.php Целия файл

@@ -17,7 +17,7 @@ return new class extends Migration
17 17
             $table->id();
18 18
             $table->foreignId('news_category_id')->references('id')->on('news_categories')->comment('文章類別');
19 19
             $table->string('news_img')->nullable()->comment('列表圖');
20
-            $table->json('news_img_alt')->nullable()->comment('列表圖 ALT');
20
+            $table->string('news_img_alt')->nullable()->comment('列表圖 ALT');
21 21
             $table->json('title')->comment("標題");
22 22
             $table->json('description')->nullable()->comment("短文");
23 23
             $table->json('written_by')->comment("編輯人");

+ 0
- 3
database/migrations/2025_09_18_091345_create_regions_table.php Целия файл

@@ -26,9 +26,6 @@ return new class extends Migration
26 26
      */
27 27
     public function down(): void
28 28
     {
29
-        Schema::table('regions',function (Blueprint $table) {
30
-            $table->dropForeign('projects_region_id_foreign');
31
-        });
32 29
         Schema::dropIfExists('regions');
33 30
     }
34 31
 };

+ 0
- 1
database/migrations/2025_09_18_091406_create_projects_table.php Целия файл

@@ -26,7 +26,6 @@ return new class extends Migration
26 26
             $table->json("contact_unit")->comment("物管單位");
27 27
             $table->json("contact_phone")->comment("物管電話");
28 28
             $table->json("inversment_phone")->comment("招商電話");
29
-            $table->unsignedInteger('order')->default(0)->comment("排序");
30 29
             $table->timestamps();
31 30
             $table->softDeletes();
32 31
         });