Explorar el Código

refactor(migration): 统一数据库迁移基类为 AbstractMigration

- 将所有迁移类继承自 Phinx\Migration\AbstractMigration
- 替换旧的 think\migration\Migrator 基类
- 更新相关的 use 语句引入 Phinx 类库
- 保持原有的迁移逻辑和方法签名不变
- 确保严格类型声明在文件顶部正确设置
runphp hace 3 meses
padre
commit
0a3a595f11

+ 2 - 2
database/migrations/20250830123540_user_point.php

@@ -1,9 +1,9 @@
 <?php
 
-use think\migration\Migrator;
+use Phinx\Migration\AbstractMigration;
 use think\migration\db\Column;
 
-class UserPoint extends Migrator
+class UserPoint extends AbstractMigration
 {
     /**
      * Change Method.

+ 2 - 2
database/migrations/20250830132345_user_point_log.php

@@ -1,9 +1,9 @@
 <?php
 
-use think\migration\Migrator;
+use Phinx\Migration\AbstractMigration;
 use think\migration\db\Column;
 
-class UserPointLog extends Migrator
+class UserPointLog extends AbstractMigration
 {
     /**
      * Change Method.