| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace addons\CloudStock\console\migrations;
- use yii\db\Migration;
- /**
- * Handles the creation of table `{{%add_is_allow_children_deduction_stock_column_to_cloud_stock_agent}}`.
- */
- class M250117070013CreateAddIsAllowChildrenDeductionStockColumnToCloudStockAgentTable extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_cloud_stock_agent`
- ADD COLUMN `is_stock_deducted_by_subordinate` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '自己的库存是否可以给下级补货 0允许 1不允许';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- }
|