| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace addons\CloudStock\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250208101738AddSellerRemarkColumn
- */
- class M250208101738CloudStock101AddColumnToAgentOrderTable extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_cloud_stock_agent_order`
- ADD COLUMN `seller_remark` varchar(255) NOT NULL DEFAULT '' COMMENT '卖家备注',
- ADD COLUMN `cancel_admin_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '取消自提的管理员id',
- ADD COLUMN `is_shipping_refunded` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已经退了运费',
- ADD COLUMN `is_delivery_address_modified` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已经修改过收货地址';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250208101738AddSellerRemarkColumn cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250208101738AddSellerRemarkColumn cannot be reverted.\n";
- return false;
- }
- */
- }
|