Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-deploy-utils
Commits
0fcb42bd
Commit
0fcb42bd
authored
Jan 08, 2018
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
ed54b42d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
change_db_config_index_too_large.sh
...ll_script/migrate_ENV/change_db_config_index_too_large.sh
+11
-0
db_index_too_large_notify.sql
qa_shell_script/migrate_ENV/db_index_too_large_notify.sql
+35
-0
update_tables_use_DYNAMIC.sh
qa_shell_script/migrate_ENV/update_tables_use_DYNAMIC.sh
+1
-0
No files found.
qa_shell_script/migrate_ENV/change_db_config_index_too_large.sh
0 → 100644
View file @
0fcb42bd
mysql
-uqa
-pqatest
-e
"set global innodb_large_prefix = ON;"
mysql
-uqa
-pqatest
-e
"set global innodb_file_format = BARRACUDA;"
sed
-i
"/innodb_file_format/d"
/home/quant_group/mysql-5.6.31/my.cnf
sed
-i
"/innodb_file_per_table/d"
/home/quant_group/mysql-5.6.31/my.cnf
sed
-i
"/innodb_large_prefix/d"
/home/quant_group/mysql-5.6.31/my.cnf
echo
"innodb_file_format=barracuda"
>>
/home/quant_group/mysql-5.6.31/my.cnf
echo
"innodb_file_per_table=true"
>>
/home/quant_group/mysql-5.6.31/my.cnf
echo
"innodb_large_prefix=true"
>>
/home/quant_group/mysql-5.6.31/my.cnf
qa_shell_script/migrate_ENV/db_index_too_large_notify.sql
0 → 100644
View file @
0fcb42bd
use
notify
;
/*drop table if exists JOB_STATUS_TRACE_LOG;
CREATE TABLE `JOB_STATUS_TRACE_LOG` (
`id` varchar(40) NOT NULL,
`job_name` varchar(100) NOT NULL,
`original_task_id` varchar(255) NOT NULL,
`task_id` varchar(255) NOT NULL,
`slave_id` varchar(50) NOT NULL,
`source` varchar(50) NOT NULL,
`execution_type` varchar(20) NOT NULL,
`sharding_item` varchar(100) NOT NULL,
`state` varchar(20) NOT NULL,
`message` varchar(4000) DEFAULT NULL,
`creation_time` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `TASK_ID_STATE_INDEX` (`task_id`,`state`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
*/
drop
table
if
exists
notify_msg_log
;
CREATE
TABLE
IF
NOT
EXISTS
`notify_msg_log`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`notify_msg_id`
bigint
(
20
)
NOT
NULL
,
`merchant_id`
varchar
(
20
)
NOT
NULL
,
`notify_order_no`
varchar
(
256
)
NOT
NULL
,
`response`
text
,
`http_status`
int
(
10
)
DEFAULT
'0'
,
`created_at`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`updated_at`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
PRIMARY
KEY
(
`id`
),
KEY
`idx_notify_order_no`
(
`notify_order_no`
),
KEY
`idx_notify_msg_id`
(
`notify_msg_id`
),
KEY
`idx_created_at`
(
`created_at`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
4605455
DEFAULT
CHARSET
=
utf8mb4
ROW_FORMAT
=
DYNAMIC
;
qa_shell_script/migrate_ENV/update_tables_use_DYNAMIC.sh
0 → 100644
View file @
0fcb42bd
mysql
-uqa
-pqatest
< /home/qa-deploy-utils/qa_shell_script/migrate_ENV/db_index_too_large_notify.sql
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