Commit 0fcb42bd authored by qa_quantgroup's avatar qa_quantgroup

up

parent ed54b42d
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
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;
mysql -uqa -pqatest < /home/qa-deploy-utils/qa_shell_script/migrate_ENV/db_index_too_large_notify.sql
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment