Преглед на файлове

feat(message): 调整通知模板字段位置- 将 template_code 字段移动到 read_time 字段之后
- 将 template_content 字段移动到 template_code 字段之后

runphp преди 5 месеца
родител
ревизия
df4fe8d75c
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      database/migrations/20251015013049_notifications_template.php

+ 2 - 2
database/migrations/20251015013049_notifications_template.php

@@ -20,8 +20,8 @@ final class NotificationsTemplate extends AbstractMigration
     public function change(): void
     {
         $table = $this->table('message_notifications');
-        $table->addColumn('template_code', 'string', ['limit' => 64, 'comment' => '模板代码'])
-            ->addColumn('template_content', 'json', ['comment' => '模板内容'])
+        $table->addColumn('template_code', 'string', ['limit' => 64, 'comment' => '模板代码', 'after' => 'read_time'])
+            ->addColumn('template_content', 'json', ['comment' => '模板内容', 'after' => 'template_code'])
             ->update();
     }
 }