M240829021836InsertQimallLink.php 959 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace app\migrations;
  3. use yii\db\Migration;
  4. /**
  5. * Class M240829021836InsertQimallLink
  6. */
  7. class M240829021836InsertQimallLink extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $this->execute("INSERT INTO `qimall_link` ( `name`, `title`, `cat_id`, `open_type`, `route`, `icon`, `remark`, `status`, `created_at`, `updated_at`) VALUES ('', '支付成功', 5, 'page', '/plugins2/Store/pay/paysuccess', '/diy/icon-set/order-5.png', '', 1, 1634096281, 1636360454);");
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function safeDown()
  20. {
  21. echo "M240829021836InsertQimallLink 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 "M240829021836InsertQimallLink cannot be reverted.\n";
  32. return false;
  33. }
  34. */
  35. }