| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230818082331AddAddonsStockQimallCrontabTask
- */
- class M230818082331AddAddonsStockQimallCrontabTask extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "INSERT INTO `qimall_crontab_task`(`name`, `command`, `type`, `rule`, `is_warning`, `status`, `created_at`, `updated_at`) VALUES ('收银台订单自动取消', 'store/cashier-order/auto-close', 2, '*/50 * * * * *', 0, 1, 1634701994, 1635908810);";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230818082331AddAddonsStockQimallCrontabTask cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230818082331AddAddonsStockQimallCrontabTask cannot be reverted.\n";
- return false;
- }
- */
- }
|