A few fixes on upgrade scripts.
[platal.git] / upgrade / 1.0.1 / update.sh
index 0aa2807..d19e994 100755 (executable)
@@ -4,6 +4,10 @@
 
 ###########################################################
 [ "$DATABASE" != "x4dat" ] || die "Cannot target x4dat"
+copy_db
+
+echo "* switching engines to InnoDB"
+./innodb.sh | mysql_pipe
 
 confirm "* Running database upgrade scripts"
 mysql_run_directory .
@@ -17,3 +21,8 @@ script_run ./tokenize_job_terms.php
 
 confirm "* Running post-PHP database upgrade script"
 mysql_run ./99_jobs.sql.postphp
+
+confirm "* Upgrading search table (reindex user names for quick search)"
+pushd ../../bin
+./search.rebuild_db.php
+popd