M240424015929AlterQimallAddonsStoreSettings.php 939 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace addons\Store\console\migrations;
  3. use yii\db\Migration;
  4. /**
  5. * Class M240424015929AlterQimallAddonsStoreSettings
  6. */
  7. class M240424015929AlterQimallAddonsStoreSettings extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $this->execute("ALTER TABLE qimall_addons_store_settings add cashier_is_open_discount tinyint(1) not null default 0 comment '收银台页面是否开启折扣输入框:1:是:0:否';");
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function safeDown()
  20. {
  21. echo "M240424015929AlterQimallAddonsStoreSettings 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 "M240424015929AlterQimallAddonsStoreSettings cannot be reverted.\n";
  32. return false;
  33. }
  34. */
  35. }