| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace addons\ScoreBonus\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240924071653InsertQimallGlobalVarMap
- */
- class M240924071653InsertQimallGlobalVarMap extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- return '';
- $this->execute("INSERT INTO `qimall_global_var_map` ( `name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ( 'ProductGift', '商品赠送', 'IncomeMap', 1, 1, 1639842662, 1639842662);");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240924071653InsertQimallGlobalVarMap cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240924071653InsertQimallGlobalVarMap cannot be reverted.\n";
- return false;
- }
- */
- }
|