| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace addons\ScoreBonus\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240626025209CreateQimallAddonsScoreBonusErrorLog
- */
- class M240626025209CreateQimallAddonsScoreBonusErrorLog extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("CREATE TABLE `qimall_addons_score_bonus_error_log` (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
- `mall_id` int(11) DEFAULT NULL COMMENT '商城id',
- `bid` int(11) DEFAULT NULL COMMENT '结算周期数据id',
- `error_log` text COMMENT '错误日志',
- `created_at` int(11) DEFAULT NULL COMMENT '创建时间',
- `updated_at` int(11) DEFAULT NULL COMMENT '修改时间',
- `date_time` int(11) DEFAULT NULL COMMENT '结算日期',
- `json_data` text COMMENT '数据',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='积分分红结算错误日志'");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240626025209CreateQimallAddonsScoreBonusErrorLog cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240626025209CreateQimallAddonsScoreBonusErrorLog cannot be reverted.\n";
- return false;
- }
- */
- }
|