A few fixes on upgrade scripts.
[platal.git] / upgrade / 1.0.1 / update.sh
index 40f1278..d19e994 100755 (executable)
@@ -3,12 +3,11 @@
 . ../inc/pervasive.sh
 
 ###########################################################
-[ "$DATABASE" != "x5dat" ] || die "Cannot target x5dat"
+[ "$DATABASE" != "x4dat" ] || die "Cannot target x4dat"
 copy_db
 
 echo "* switching engines to InnoDB"
-(./innodb.sh | while read line; do mysql_exec "$line"; done) || die "ERROR"
-echo "OK"
+./innodb.sh | mysql_pipe
 
 confirm "* Running database upgrade scripts"
 mysql_run_directory .