| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace addons\QiJuhe\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240608115841AddExpressYUNDA
- */
- class M240608115841AddExpressYUNDA extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- INSERT INTO `qimall_addons_qijuhe_express` (`express_id`, `name`, `code`) VALUES (3, '韵达', 'YUNDA');
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240608115841AddExpressYUNDA cannot be reverted.\n";
- return false;
- }
- }
|