| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M240326162713AddVarMap
- */
- class M240326162713AddVarMap extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- INSERT INTO `qimall_global_var_map` (`name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ('giving_coupon_reward', '转赠优惠券奖励', 'CapitalTypeMap', 0, 1, 1654569888, 1654569888);
- INSERT INTO `qimall_global_var_map` (`name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ('Store', 'o2o门店', 'FromTypeMap', 1, 1, 1654569888, 1654569888);
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240326162713AddVarMap cannot be reverted.\n";
- return false;
- }
- }
|