| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Handles the creation of table `{{%order_modify_shipping_address_log}}`.
- */
- class M240923080811CreateOrderModifyShippingAddressLogTable extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- CREATE TABLE `qimall_order_modify_shipping_address_log` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `mall_id` int(10) unsigned NOT NULL DEFAULT '0',
- `order_id` int(10) unsigned NOT NULL DEFAULT '0',
- `status` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '-1删除 1禁用 2正常',
- `created_at` int(10) unsigned NOT NULL DEFAULT '0',
- `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `mall_id+order_id+status` (`mall_id`,`order_id`,`status`) USING BTREE
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- }
|