| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240424015929AlterQimallAddonsStoreSettings
- */
- class M240424015929AlterQimallAddonsStoreSettings extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("ALTER TABLE qimall_addons_store_settings add cashier_is_open_discount tinyint(1) not null default 0 comment '收银台页面是否开启折扣输入框:1:是:0:否';");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240424015929AlterQimallAddonsStoreSettings cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240424015929AlterQimallAddonsStoreSettings cannot be reverted.\n";
- return false;
- }
- */
- }
|