| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace addons\Agent\console\migrations;
- use yii\db\Migration;
- /**
- * Handles the creation of table `{{%qimall_agent_supplier_commission_sync_log}}`.
- */
- class M240906080133CreateAgentSupplierCommissionSyncLogTable extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- CREATE TABLE `qimall_addons_agent_supplier_commission_sync_log` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `mall_id` int(10) unsigned NOT NULL DEFAULT '0',
- `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '-1 执行失败 0未执行 1执行成功',
- `created_at` int(10) unsigned NOT NULL DEFAULT '0',
- `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商收入同步旧数据记录表';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- }
|