| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Handles the creation of table `{{%payment_type_refund_statistics_logs}}`.
- */
- class M241108110308CreatePaymentTypeRefundStatisticsLogsTable extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- CREATE TABLE `qimall_payment_type_refund_statistics_logs` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `mall_id` int(10) unsigned NOT NULL DEFAULT '0',
- `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态[-1:删除;0:禁用;1启用]',
- `statistics_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'qimall_payment_type_refund_statistics 表的 id',
- `refund_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '售后id',
- `order_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '订单id',
- `created_at` int(10) unsigned NOT NULL DEFAULT '0',
- `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `payment_identifier+refund_id` (`statistics_id`,`refund_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='记录指定支付方式哪些订单售后成功';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- }
|