DB creation must be done using mysql_exec_nodb since the databse does not
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 21 Jun 2010 14:44:12 +0000 (16:44 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 21 Jun 2010 16:35:39 +0000 (18:35 +0200)
exists.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
upgrade/1.0.0/update.sh

index d7f6f65..e211b6e 100755 (executable)
@@ -8,7 +8,7 @@
 confirm "Setting up new database: target db is \"$DATABASE\", source prefix is \"$DBPREFIX\""
 
 echo "* create database"
-mysql_exec "CREATE DATABASE IF NOT EXISTS $DATABASE;"
+mysql_exec_nodb "CREATE DATABASE IF NOT EXISTS $DATABASE;"
 echo "OK"
 
 echo "* copying tables "