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