Update readme.
[platal.git] / upgrade / 1.0.0 / update.sh
CommitLineData
a90ca862
RB
1#!/bin/bash
2
3. ../inc/pervasive.sh
4
bb9d47f4
FB
5###########################################################
6[ "$DATABASE" != "x4dat" ] || die "Cannot target x4dat"
7
8confirm "Setting up new database: target db is \"$DATABASE\", source prefix is \"$DBPREFIX\""
9
10echo -n "* create database "
11(echo "CREATE DATABASE IF NOT EXISTS $DATABASE;" | mysql_pipe) || die "ERROR"
12echo "OK"
13
14echo -n "* copying tables "
15(../account/copy_tables.sh | mysql_pipe) || die "ERROR"
16echo "OK"
17
18mysql_run_directory ../newdirectory-0.0.1
19mysql_run_directory ../account
20mysql_run_directory .
a90ca862
RB
21
22###########################################################
bb9d47f4
FB
23confirm "Running upgrade scripts"
24script_run ../newdirectory-0.0.1/phones.php
25script_run ../newdirectory-0.0.1/addresses.php
26script_run ../newdirectory-0.0.1/alternate_subsubsectors.php
27script_run ../account/birthday.php