Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-opsdoc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ab921854
authored
Mar 31, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加上线SQL脚本
1 parent
44e00f34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
1.5.0_三月/1.5.0数据库SQL脚本.sql
1.5.0_三月/1.5.0数据库SQL脚本.sql
View file @
ab92185
...
@@ -83,4 +83,8 @@ alter table t_vehicle_permit add unique index uidx_vehicle_permit(content_id, re
...
@@ -83,4 +83,8 @@ alter table t_vehicle_permit add unique index uidx_vehicle_permit(content_id, re
2022
/
03
/
31
需要执行的
SQL
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
\ 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
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment