| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M230218073427CreateQimallBalanceLogRelation
- */
- class M230218073428InsertQimallCrontabTask extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql ="INSERT INTO `qimall_crontab_task` ( `name`, `command`, `type`, `rule`, `is_warning`, `status`, `created_at`, `updated_at`) VALUES ('薪资平台-每月统计', 'commission-month-billing/init', 2, '0 0 0 1 0 0', 0, 1, 1677828309, 1677828484)";
- $this->execute($sql);
- $sql = "INSERT INTO `qimall_crontab_task` ( `name`, `command`, `type`, `rule`, `is_warning`, `status`, `created_at`, `updated_at`) VALUES ( '薪资平台-每年统计', 'commission-years-billing/init', 2, '0 0 0 1 1 0', 0, 1, 1677828364, 1677828467)";
- $this->execute($sql);
- } catch (\Exception $e) {
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230218073427CreateQimallBalanceLogRelation cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230218073427CreateQimallBalanceLogRelation cannot be reverted.\n";
- return false;
- }
- */
- }
|