| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230731062350StoreAloneSettle
- */
- class M230731062350StoreAloneSettle extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_addons_store_goods_extra` ADD COLUMN `is_alone_settle` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否开启独立结算金额 [1是 0 否]',ADD COLUMN `alone_settle_price` decimal(10,2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '独立结算金额';";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230731062350StoreAloneSettle cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230731062350StoreAloneSettle cannot be reverted.\n";
- return false;
- }
- */
- }
|