| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace addons\Course\console\migrations;
- use addons\Course\common\models\AddonsCourseActivity;
- use common\enums\AddonsEnum;
- use common\models\mall\MallAddons;
- use yii\db\Migration;
- /**
- * Class M240425023506UploadShippingInfo
- */
- class M250118154510UpdateGlobalVarMap extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "INSERT INTO `qimall_global_var_map` (`name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ('Course', '课程订单', 'MarketingTypeMap', 1, 1, 1737183273, 1737183273)";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250118154510UpdateGlobalVarMap cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250118154510UpdateGlobalVarMap cannot be reverted.\n";
- return false;
- }
- */
- }
|