Bläddra i källkod

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

runphp 5 månader sedan
förälder
incheckning
df4fe8d75c
1 ändrade filer med 2 tillägg och 2 borttagningar
  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();
     }
 }