M240906080133CreateAgentSupplierCommissionSyncLogTable.php 968 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace addons\Agent\console\migrations;
  3. use yii\db\Migration;
  4. /**
  5. * Handles the creation of table `{{%qimall_agent_supplier_commission_sync_log}}`.
  6. */
  7. class M240906080133CreateAgentSupplierCommissionSyncLogTable extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $sql = <<<SQL
  15. CREATE TABLE `qimall_addons_agent_supplier_commission_sync_log` (
  16. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  17. `mall_id` int(10) unsigned NOT NULL DEFAULT '0',
  18. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '-1 执行失败 0未执行 1执行成功',
  19. `created_at` int(10) unsigned NOT NULL DEFAULT '0',
  20. `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
  21. PRIMARY KEY (`id`)
  22. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商收入同步旧数据记录表';
  23. SQL;
  24. $this->execute($sql);
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function safeDown()
  30. {
  31. return false;
  32. }
  33. }