| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230411065401AddTaskOnCrontabTask
- */
- class M230411065401AddTaskOnCrontabTask extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $this->execute("INSERT INTO `qimall_crontab_task`( `name`, `command`, `type`, `rule`, `is_warning`, `status`, `created_at`, `updated_at`) VALUES ('发放门店股东分红佣金定时任务', 'store/store-boss-crontab/mall-send-commission', 2, '0 31 0 * * *', 0, 1, 1681196194, 1681196194);");
- }catch (\Exception $e){
- var_dump($e->getMessage());
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230411065401AddTaskOnCrontabTask cannot be reverted.\n";
- return false;
- }
- }
|