Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
djscrm
/
scrm-account-doc
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 1d2ad8d7
authored
Apr 15, 2022
by
chizw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
配置和数据库脚本
1 parent
0e351c71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
2.1.0_四月份版本/2.1.0_entmicro数据库SQL脚本.sql
2.1.0_四月份版本/2.1.0_entmicro数据库SQL脚本.sql
View file @
1d2ad8d
...
@@ -7,3 +7,15 @@ ALTER TABLE `scrm_entmicro`.`entmicro_department_path` ADD INDEX `index_sup_id`
...
@@ -7,3 +7,15 @@ ALTER TABLE `scrm_entmicro`.`entmicro_department_path` ADD INDEX `index_sup_id`
ALTER
TABLE
`scrm_entmicro`
.
`drac_channel_code`
ADD
INDEX
`index_state`
(
`code_state`
);
ALTER
TABLE
`scrm_entmicro`
.
`drac_channel_code`
ADD
INDEX
`index_state`
(
`code_state`
);
//
按添加时间排序索引
//
按添加时间排序索引
ALTER
TABLE
`scrm_entmicro`
.
`scrm_customer_merge`
ADD
INDEX
`index_addTime`
(
`created_time`
);
ALTER
TABLE
`scrm_entmicro`
.
`scrm_customer_merge`
ADD
INDEX
`index_addTime`
(
`created_time`
);
//
群聊名称字符长度增加
ALTER
TABLE
`scrm_entmicro`
.
`scrm_group_one_template`
CHANGE
`group_name`
`group_name`
VARCHAR
(
100
)
CHARSET
utf8
COLLATE
utf8_general_ci
NULL
COMMENT
'群聊名称'
;
//
客户名称逻辑变更
,
刷新历史数据
UPDATE
scrm_customer_merge
SET
customer_name
=
''
WHERE
id
IN
(
SELECT
*
FROM
(
SELECT
scm
.
id
FROM
scrm_customer_merge
scm
LEFT
JOIN
scrm_customer
sc
ON
sc
.
one_id
=
scm
.
one_id
AND
scm
.
merchant_id
=
sc
.
merchantId
AND
sc
.
add_way
IN
(
101
,
103
)
WHERE
sc
.
id
IS
NULL
GROUP
BY
scm
.
id
)
t
)
\ 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