| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace addons\ReservationService\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240330011722InsertQimallCrontabTask
- */
- class M240330011722InsertQimallCrontabTask extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql="INSERT INTO `qimall_crontab_task` ( `name`, `command`, `type`, `rule`, `is_warning`, `status`, `created_at`, `updated_at`) VALUES ( '预约服务订单自动验收', 'reservation-service/order/auto-complete', 2, '0 0 */1 * * *', 0, 1, 1711761430, 1711761430);";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240330011722InsertQimallCrontabTask cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240330011722InsertQimallCrontabTask cannot be reverted.\n";
- return false;
- }
- */
- }
|