Commit 1a8818807bc99f790891c709085189a998b44338

Authored by conradverm
1 parent b8634f46

KTS-2373

"Update structure.sql and data.sql"
Updated. Upgrades added and now using mysqldump to produce dumps.

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7343 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 2 deletions
sql/mysql/install/dump.sh
@@ -8,10 +8,11 @@ case $1 in @@ -8,10 +8,11 @@ case $1 in
8 *) DB=$1 ;; 8 *) DB=$1 ;;
9 esac 9 esac
10 10
  11 +PATH=$PATH:../../../../mysql/bin:/usr/local/mysql/bin
11 DATE=`date +%Y-%m-%d-%H-%M-%S` 12 DATE=`date +%Y-%m-%d-%H-%M-%S`
12 13
13 # Create the Structure Dump 14 # Create the Structure Dump
14 -../../../../mysql/bin/mysqldump -u root -p $DB --no-data --skip-add-drop-table > structure-$DATE.sql 15 +mysqldump -u root -p $DB --no-data --skip-add-drop-table > structure-$DATE.sql
15 16
16 # Create the Data Dump 17 # Create the Data Dump
17 -../../../../mysql/bin/mysqldump -u root -p $DB --no-create-info > data-$DATE.sql 18 +mysqldump -u root -p $DB --no-create-info > data-$DATE.sql