Bladeren bron

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

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

+ 2 - 2
database/migrations/20250712021908_extension_eav_entity_type.php

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

+ 2 - 2
database/migrations/20250712021931_extension_eav_attribute.php

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

+ 2 - 2
database/migrations/20250712022607_extension_eav_value.php

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

+ 2 - 2
database/migrations/20250712025652_extension_eav_attribute_option.php

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

+ 2 - 2
database/migrations/20250918015319_eav_attribute_prepend_append.php

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