| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240730021237AlterQimallAddonsStoreSettings
- */
- class M240730021237AlterQimallAddonsStoreSettings extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "alter table qimall_addons_store_settings add is_allow_editing tinyint(1) not null default 0 comment '服务费计算方式平台承担下是否允许门店独立后台商品设置分佣模式:0否;1是'";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240730021237AlterQimallAddonsStoreSettings cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240730021237AlterQimallAddonsStoreSettings cannot be reverted.\n";
- return false;
- }
- */
- }
|