Skip to content
Snippets Groups Projects
Commit a8fab644 authored by zhengxie's avatar zhengxie
Browse files

[script] Added ENGIN=INNODB to create table statement

parent b69d4397
Branches
Tags
No related merge requests found
......@@ -95,3 +95,9 @@ sed 's/, UNIQUE (`user_email`, `contact_email`)//g' ${SEAHUB_DB} > ${SEAHUB_D
# remove base_dirfileslastmodifiedinfo records to avoid json string parsing issue between sqlite and mysql
sed '/INSERT INTO `base_dirfileslastmodifiedinfo`/d' ${SEAHUB_DB} > ${SEAHUB_DB}.tmp && mv ${SEAHUB_DB}.tmp ${SEAHUB_DB}
########## common logic
# add ENGIN=INNODB to create table statment
sed -r 's/(CREATE TABLE.*);/\1 ENGINE=INNODB;/g' ${CCNET_DB} > ${CCNET_DB}.tmp && mv ${CCNET_DB}.tmp ${CCNET_DB}
sed -r 's/(CREATE TABLE.*);/\1 ENGINE=INNODB;/g' ${SEAFILE_DB} > ${SEAFILE_DB}.tmp && mv ${SEAFILE_DB}.tmp ${SEAFILE_DB}
sed -r 's/(CREATE TABLE.*);/\1 ENGINE=INNODB;/g' ${SEAHUB_DB} > ${SEAHUB_DB}.tmp && mv ${SEAHUB_DB}.tmp ${SEAHUB_DB}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment