| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace addons\ScoreBonus\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240627072137InsertQimallGlobalVarMap
- */
- class M240627072137InsertQimallGlobalVarMap extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "INSERT INTO `qimall_global_var_map`(`name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES
- ('ScoreBonus', '积分分红', 'FromTypeMap', 1, 1, 1719452927, 1719452927),
- ('ScoreBonus', '积分分红', 'CapitalTypeMap', 1, 1, 1719452927, 1719452927),
- ('ScoreBonus', '积分分红', 'IncomeMap', 1, 1, 1719452927, 1719452927);";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240627072137InsertQimallGlobalVarMap cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240627072137InsertQimallGlobalVarMap cannot be reverted.\n";
- return false;
- }
- */
- }
|