5 ###########################################################
6 [ "$DATABASE" != "x4dat" ] || die
"Cannot target x4dat"
8 confirm
"Setting up new database: target db is \"$DATABASE\", source prefix is \"$DBPREFIX\""
10 echo "* create database"
11 mysql_exec_nodb
"CREATE DATABASE IF NOT EXISTS $DATABASE;"
14 echo "* copying tables "
15 (..
/account
/copy_tables.sh |
while read line
; do mysql_exec
"$line"; done) || die
"ERROR"
18 mysql_run_directory ..
/newdirectory-0.0
.1
19 mysql_run_directory ..
/account
22 ###########################################################
23 confirm
"* Running upgrade scripts"
24 script_run ..
/newdirectory-0.0
.1/phones.php
25 script_run ..
/newdirectory-0.0
.1/addresses.php
26 script_run ..
/account
/birthday.php