| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240930014845AlterQimallAddonsStoreGoodsReserve
- */
- class M240930014845AlterQimallAddonsStoreGoodsReserve extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql="ALTER table qimall_addons_store_goods_reserve add appointments_number int(11) not null default 0 comment '同时间点可预约人数';";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240930014845AlterQimallAddonsStoreGoodsReserve cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240930014845AlterQimallAddonsStoreGoodsReserve cannot be reverted.\n";
- return false;
- }
- */
- }
|