M240308024858InsertQimallGlobalVarMap.php 962 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace addons\SecondaryCard\console\migrations;
  3. use yii\db\Migration;
  4. /**
  5. * Class M240308024858InsertQimallGlobalVarMap
  6. */
  7. class M240308024858InsertQimallGlobalVarMap extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $this->execute("INSERT INTO `qimall_global_var_map` ( `name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ( 'secondary_card_refund', '次卡退款', 'CapitalTypeMap', 0, 1, 1654569888, 1654569888);");
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function safeDown()
  20. {
  21. echo "M240308024858InsertQimallGlobalVarMap cannot be reverted.\n";
  22. return false;
  23. }
  24. /*
  25. // Use up()/down() to run migration code without a transaction.
  26. public function up()
  27. {
  28. }
  29. public function down()
  30. {
  31. echo "M240308024858InsertQimallGlobalVarMap cannot be reverted.\n";
  32. return false;
  33. }
  34. */
  35. }