| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace addons\CloudStock\console\migrations;
- use yii\db\Migration;
- /**
- * Handles the creation of table `{{%batch_fill_order}}`.
- */
- class M250120085812CreateBatchFillOrderTable extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- CREATE TABLE `qimall_addons_cloud_stock_batch_fill_order` (
- `id` int UNSIGNED NOT NULL AUTO_INCREMENT,
- `mall_id` int UNSIGNED NOT NULL DEFAULT 0,
- `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '下单用户id',
- `trade_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付流水ID',
- `trade_no` varchar(100) NOT NULL DEFAULT '' COMMENT '支付流水号',
- `full_order_info` json NULL COMMENT '单件补货订单返回值',
- `status` tinyint NOT NULL DEFAULT 1,
- `created_at` int UNSIGNED NOT NULL DEFAULT 0,
- `updated_at` int UNSIGNED NOT NULL DEFAULT 0,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- }
|