Commit | Line | Data |
---|---|---|
f73d9281 FB |
1 | #!/bin/bash |
2 | ||
3 | . ../inc/pervasive.sh | |
4 | ||
5 | ########################################################### | |
84370781 | 6 | [ "$DATABASE" != "x4dat" ] || die "Cannot target x4dat" |
cc9dc1dd | 7 | copy_db |
f73d9281 | 8 | |
b6731d4b | 9 | echo "* switching engines to InnoDB" |
84370781 | 10 | ./innodb.sh | mysql_pipe |
b6731d4b | 11 | |
f73d9281 FB |
12 | confirm "* Running database upgrade scripts" |
13 | mysql_run_directory . | |
14 | ||
15 | confirm "* Running upgrade scripts" | |
16 | script_run ./phone.php | |
17 | script_run ./xnet_directory_name.php | |
18 | script_run ./sectors_as_terms.php | |
19 | script_run ./positions_as_terms.php | |
20 | script_run ./tokenize_job_terms.php | |
21 | ||
22 | confirm "* Running post-PHP database upgrade script" | |
23 | mysql_run ./99_jobs.sql.postphp | |
85d16d6a FB |
24 | |
25 | confirm "* Upgrading search table (reindex user names for quick search)" | |
26 | pushd ../../bin | |
27 | ./search.rebuild_db.php | |
28 | popd |