Selaa lähdekoodia

refactor(migrations): 统一数据库迁移文件格式

- 为所有迁移文件添加 declare(strict_types=1) 声明
- 移除旧版 Column 类的使用,改用数组配置方式定义字段
- 统一时间戳字段命名为 create_time 和 update_time
- 使用 addColumn 方法替代 addTimestamps 和 addSoftDelete
- 标准化字段定义参数格式,提升代码一致性
runphp 3 kuukautta sitten
vanhempi
sitoutus
c405595696

+ 1 - 0
database/migrations/20251010100000_create_shipping_templates_table.php

@@ -1,4 +1,5 @@
 <?php
+declare(strict_types=1);
 
 class CreateShippingTemplatesTable extends \Phinx\Migration\AbstractMigration
 {

+ 2 - 1
database/migrations/20251010100100_create_shipping_template_rules_table.php

@@ -1,7 +1,8 @@
 <?php
 
+declare(strict_types=1);
+
 use Phinx\Migration\AbstractMigration;
-use think\migration\db\Column;
 
 class CreateShippingTemplateRulesTable extends AbstractMigration
 {

+ 2 - 1
database/migrations/20251010100200_create_shipping_template_relations_table.php

@@ -1,7 +1,8 @@
 <?php
 
+declare(strict_types=1);
+
 use Phinx\Migration\AbstractMigration;
-use think\migration\db\Column;
 
 class CreateShippingTemplateRelationsTable extends AbstractMigration
 {