| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace addons\CloudStock\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230811024441AlterQimallAddonsCloudStockAgentOrder
- */
- class M230811024441AlterQimallAddonsCloudStockAgentOrder extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql="ALTER TABLE qimall_addons_cloud_stock_agent_order add `list` text COMMENT '物流具体轨迹信息';";
- $this->execute($sql);
- $sql="ALTER TABLE qimall_addons_cloud_stock_agent_order add `table_express_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '物流状态0/未完成 1/已完成';";
- $this->execute($sql);
- $sql="ALTER TABLE qimall_addons_cloud_stock_agent_order add `express_status` tinyint(2) NOT NULL DEFAULT '9' COMMENT '当前物流状态(物流公司状态)';";
- $this->execute($sql);
- }catch (\Exception $e){
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230811024441AlterQimallAddonsCloudStockAgentOrder cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230811024441AlterQimallAddonsCloudStockAgentOrder cannot be reverted.\n";
- return false;
- }
- */
- }
|