Explorar el Código

back update with api

padre
commit
b323b3a99f

+ 1
- 1
database/migrations/2025_09_04_073524_create_news_table.php Ver fichero

17
             $table->id();
17
             $table->id();
18
             $table->foreignId('news_category_id')->references('id')->on('news_categories')->comment('文章類別');
18
             $table->foreignId('news_category_id')->references('id')->on('news_categories')->comment('文章類別');
19
             $table->string('news_img')->nullable()->comment('列表圖');
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
             $table->json('title')->comment("標題");
21
             $table->json('title')->comment("標題");
22
             $table->json('description')->nullable()->comment("短文");
22
             $table->json('description')->nullable()->comment("短文");
23
             $table->json('written_by')->comment("編輯人");
23
             $table->json('written_by')->comment("編輯人");

+ 0
- 3
database/migrations/2025_09_18_091345_create_regions_table.php Ver fichero

26
      */
26
      */
27
     public function down(): void
27
     public function down(): void
28
     {
28
     {
29
-        Schema::table('regions',function (Blueprint $table) {
30
-            $table->dropForeign('projects_region_id_foreign');
31
-        });
32
         Schema::dropIfExists('regions');
29
         Schema::dropIfExists('regions');
33
     }
30
     }
34
 };
31
 };

+ 0
- 1
database/migrations/2025_09_18_091406_create_projects_table.php Ver fichero

26
             $table->json("contact_unit")->comment("物管單位");
26
             $table->json("contact_unit")->comment("物管單位");
27
             $table->json("contact_phone")->comment("物管電話");
27
             $table->json("contact_phone")->comment("物管電話");
28
             $table->json("inversment_phone")->comment("招商電話");
28
             $table->json("inversment_phone")->comment("招商電話");
29
-            $table->unsignedInteger('order')->default(0)->comment("排序");
30
             $table->timestamps();
29
             $table->timestamps();
31
             $table->softDeletes();
30
             $table->softDeletes();
32
         });
31
         });