Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
90560f4d
Commit
90560f4d
authored
Apr 10, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql
parent
d68b3838
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
121 additions
and
0 deletions
+121
-0
V2_0_20200410125710_pro_alter_table_DDL.sql
dbscript/V2_0_20200410125710_pro_alter_table_DDL.sql
+17
-0
V2_0_20200410125710_pro_modify_data_DML.sql
dbscript/V2_0_20200410125710_pro_modify_data_DML.sql
+104
-0
No files found.
dbscript/V2_0_20200410125710_pro_alter_table_DDL.sql
0 → 100644
View file @
90560f4d
use
zx_education
;
-- 修改外链表中 备注字段类型
alter
table
b_external_link
modify
column
`remarks`
VARCHAR
(
500
);
-- 修改name字段
alter
table
s_user
modify
column
`name`
VARCHAR
(
150
);
-- 修改blesson表中 积分默认值
ALTER
table
b_lesson
modify
column
value_gain
VARCHAR
(
16
)
DEFAULT
0
;
ALTER
table
b_lesson
modify
column
value_consume
VARCHAR
(
16
)
DEFAULT
0
;
-- 改变考试详情表中 字段字符集支持表情
alter
table
tm_examdata
modify
column
`e_data`
longtext
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
;
-- 修改同步表 表结构
ALTER
TABLE
synchronization_time
ADD
corp_id
VARCHAR
(
64
)
COMMENT
'企业id'
;
\ No newline at end of file
dbscript/V2_0_20200410125710_pro_modify_data_DML.sql
0 → 100644
View file @
90560f4d
use
zx_education
;
-- 删除原有数据(只有一条数据)
DELETE
from
synchronization_time
where
1
=
1
;
-- 插入数据
insert
into
synchronization_time
(
business_id
,
synchronization_time
,
corp_id
)
VALUES
(
UUID
(),
'2000-01-07 17:34:15'
,
'6'
),(
UUID
(),
'2000-01-07 17:34:15'
,
'1203905255847022594'
);
-- 隐藏菜单显示
update
s_menu
set
DEL_FLAG
=
0
,
flag
=
1
;
-- 修改blesson表中 积分是null的值
update
b_lesson
set
value_gain
=
'0'
where
value_gain
is
null
;
update
b_lesson
set
value_consume
=
'0'
where
value_consume
is
null
;
-- step3--------->企业id = 7 斜沟
-- 清除用户
delete
from
s_user
WHERE
corp_id
=
'7'
;
-- 清除角色
delete
from
tm_admin_role
where
corp_id
=
'7'
;
-- 清除数据字典
delete
from
b_dictionary
WHERE
corp_id
=
'7'
;
-- 清除通知表
delete
from
b_message
WHERE
corp_id
=
'7'
;
-- step4---------->企业id = 1207232597214461954 政企协同
-- 清除用户
delete
from
s_user
WHERE
corp_id
=
'1207232597214461954'
;
-- 清除角色
delete
from
tm_admin_role
where
corp_id
=
'1207232597214461954'
;
-- 清除数据字典
delete
from
b_dictionary
WHERE
corp_id
=
'1207232597214461954'
;
-- 清除通知表
delete
from
b_message
WHERE
corp_id
=
'1207232597214461954'
;
-- step5---------->企业id = 1207228284173910017 安居煤矿
-- 清除用户
delete
from
s_user
WHERE
corp_id
=
'1207228284173910017'
;
-- 清除角色
delete
from
tm_admin_role
where
corp_id
=
'1207228284173910017'
;
-- 清除数据字典
delete
from
b_dictionary
WHERE
corp_id
=
'1207228284173910017'
;
-- 清除通知表
delete
from
b_message
WHERE
corp_id
=
'1207228284173910017'
;
-- step6---------->企业id = 1207228535722622977 运河煤矿
-- 清除用户
delete
from
s_user
WHERE
corp_id
=
'1207228535722622977'
;
-- 清除角色
delete
from
tm_admin_role
where
corp_id
=
'1207228535722622977'
;
-- 清除数据字典
delete
from
b_dictionary
WHERE
corp_id
=
'1207228535722622977'
;
-- 清除通知表
delete
from
b_message
WHERE
corp_id
=
'1207228535722622977'
;
-- step7---------->企业id = 1207228679629668353 济二矿
-- 清除用户
delete
from
s_user
WHERE
corp_id
=
'1207228679629668353'
;
-- 清除角色
delete
from
tm_admin_role
where
corp_id
=
'1207228679629668353'
;
-- 清除数据字典
delete
from
b_dictionary
WHERE
corp_id
=
'1207228679629668353'
;
-- 清除通知表
delete
from
b_message
WHERE
corp_id
=
'1207228679629668353'
;
-- step8---------->企业id =1215445669628035074 临沂矿业集团
-- 清除用户
delete
from
s_user
WHERE
corp_id
=
'1215445669628035074'
;
-- 清除角色
delete
from
tm_admin_role
where
corp_id
=
'1215445669628035074'
;
-- 清除数据字典
delete
from
b_dictionary
WHERE
corp_id
=
'1215445669628035074'
;
-- 清除通知表
delete
from
b_message
WHERE
corp_id
=
'1215445669628035074'
;
-- step9---------->企业id =1238293483550986242 晋煤洗选
-- 清除用户
delete
from
s_user
WHERE
corp_id
=
'1238293483550986242'
;
-- 清除角色
delete
from
tm_admin_role
where
corp_id
=
'1238293483550986242'
;
-- 清除数据字典
delete
from
b_dictionary
WHERE
corp_id
=
'1238293483550986242'
;
-- 清除通知表
delete
from
b_message
WHERE
corp_id
=
'1238293483550986242'
;
-- step10--------->企业id =1207228927122964482 唐口煤业
-- 清除用户
delete
from
s_user
WHERE
corp_id
=
'1207228927122964482'
;
-- 清除角色
delete
from
tm_admin_role
where
corp_id
=
'1207228927122964482'
;
-- 清除数据字典
delete
from
b_dictionary
WHERE
corp_id
=
'1207228927122964482'
;
-- 清除通知表
delete
from
b_message
WHERE
corp_id
=
'1207228927122964482'
;
-- step11---------->企业id = 1207228819966885889 济三矿
-- 清除用户
delete
from
s_user
WHERE
corp_id
=
'1207228819966885889'
;
-- 清除角色
delete
from
tm_admin_role
where
corp_id
=
'1207228819966885889'
;
-- 清除数据字典
delete
from
b_dictionary
WHERE
corp_id
=
'1207228819966885889'
;
-- 清除通知表
delete
from
b_message
WHERE
corp_id
=
'1207228819966885889'
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment