| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M250314082009InsertQimallCrontabTask
- */
- class M250314082009InsertQimallCrontabTask extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql = "
- INSERT `qimall_crontab_task` ( `name`, `command`, `type`, `rule`, `is_warning`, `status`, `created_at`, `updated_at`) VALUES ('聚水潭-重新推送失败的订单', 'js-tan-erp/index/push-order', 2, '0 */30 * * * *', 0, 1, 1739932378, 1739945579);
- ";
- $this->execute($sql);
- } catch (\Exception $e) {
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250314082009InsertQimallCrontabTask cannot be reverted.\n";
- return false;
- }
- }
|