Browse Source

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

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

+ 2 - 2
database/migrations/20250720063342_extension_payment.php

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

+ 2 - 2
database/migrations/20250731075545_extension_payment_user_id.php

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

+ 2 - 2
database/migrations/20250905165126_extension_refund.php

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