execute($sql); $insertSql = "INSERT INTO `qimall_crontab_task`(`name`, `command`, `type`, `rule`, `is_warning`, `status`, `created_at`, `updated_at`) VALUES ('用户邀请码-补发', 'user/reissue-code', 2, '0 */8 * * * *', 0, 1, 1684832132, 1684832169);"; $this->execute($insertSql); } /** * {@inheritdoc} */ public function safeDown() { echo "M230523073934CreateTableQimallUserInviteCode cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M230523073934CreateTableQimallUserInviteCode cannot be reverted.\n"; return false; } */ }