| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace addons\QiJuhe\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240805021236QiJuheOrderSyncRetry
- */
- class M240805021236QiJuheOrderSyncRetry extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("INSERT INTO `qimall_crontab_task` (`name`, `command`, `type`, `rule`, `is_warning`, `status`, `created_at`, `updated_at`) VALUES ('七聚合 - 每小时同步一次已支付的订单', 'qi-juhe/order-sync/retry', 2, '0 0 */1 * * *', 0, 1, 1658479952, 1658479952);");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240805021236QiJuheOrderSyncRetry cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240805021236QiJuheOrderSyncRetry cannot be reverted.\n";
- return false;
- }
- */
- }
|