Commit 46c3ce67 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Make mysql default to mysql55 with sql conversion

Change-Id: I15a6dd46c27dbe11b24a04f5c5ddb993484699a9
parent 0b3f2149
......@@ -53,7 +53,7 @@ fi
# Check what we converting for
case "$database" in
"mysql55")
"mysql"|"mysql55")
sed \
-e "s/@PREFIX@/$prefix/g" \
-e 's/@PRELOAD@/SET FOREIGN_KEY_CHECKS=0;/' \
......@@ -77,17 +77,6 @@ case "$database" in
-e 's/@SERIAL_REF_TYPE@/BIGINT UNSIGNED/' < "$file"
;;
"mysql")
sed \
-e 's/@PRELOAD@/SET FOREIGN_KEY_CHECKS=0;/' \
-e 's/@POSTLOAD@/SET FOREIGN_KEY_CHECKS=1;/' \
-e 's/@CREATE_TABLE_SUFFIX@/TYPE=InnoDB CHARACTER SET latin1 COLLATE latin1_bin/' \
-e 's/@SERIAL_TYPE@/SERIAL/' \
-e 's/@BIG_INTEGER_UNSIGNED@/BIGINT UNSIGNED/' \
-e 's/@TRACK_KEY_LEN@/512/' \
-e 's/@SERIAL_REF_TYPE@/BIGINT UNSIGNED/' < "$file"
;;
"pgsql")
sed \
-e 's/@PRELOAD@/SET CONSTRAINTS ALL DEFERRED;/' \
......
Supports Markdown
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