Commit 30f1fc12 by 杨林龙

增加上线SQL脚本

1 parent 44e00f34
......@@ -83,4 +83,8 @@ alter table t_vehicle_permit add unique index uidx_vehicle_permit(content_id, re
2022/03/31 需要执行的SQL
ALTER TABLE t_fake_offline_vin ADD COLUMN `merchant_type` TINYINT(2) DEFAULT NULL COMMENT '围栏类型: 1.家庭所在地围栏 2.工作所在地围栏' AFTER `vin`;
\ No newline at end of file
ALTER TABLE t_fake_offline_vin ADD COLUMN `merchant_type` TINYINT(2) DEFAULT NULL COMMENT '围栏类型: 1.家庭所在地围栏 2.工作所在地围栏' AFTER `vin`;
UPDATE t_fake_offline_fence_sn tfofs ,t_fake_offline_vin tfov ,t_vehicle tv ,`t_vehicle_device` tvd
SET tfov.merchant_type =tfofs.`merchant_type`
WHERE tfofs.`sn` = tvd.`sn` AND tvd.`vehicle_id` = tv.`id` AND tv.`vin`= tfov.`vin` AND tfofs.`del_flag` = 0 AND tfofs.status = 1;
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!