db: Remove create-schema-view.sql, views are created using schema-40to410.sql

- Remove create-schema-view.sql, views are created when mgmt server does rolling
  upgrade from 4.0.0 to 4.1.0
- Fix reference and usage of the sql file in scripts

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-02-17 23:26:00 +05:30
parent 16e81130cc
commit 31d6f03308
3 changed files with 0 additions and 1174 deletions

File diff suppressed because it is too large Load Diff

View File

@ -55,11 +55,6 @@ if [ ! -f create-index-fk.sql ]; then
exit 6; exit 6;
fi fi
if [ ! -f create-schema-view.sql ]; then
printf "Error: Unable to find create-schema-view.sql\n"
exit 7
fi
PATHSEP=':' PATHSEP=':'
if [[ $OSTYPE == "cygwin" ]] ; then if [[ $OSTYPE == "cygwin" ]] ; then
export CATALINA_HOME=`cygpath -m $CATALINA_HOME` export CATALINA_HOME=`cygpath -m $CATALINA_HOME`
@ -105,12 +100,6 @@ if [ $? -ne 0 ]; then
exit 11 exit 11
fi fi
mysql --user=cloud --password=cloud cloud < create-schema-view.sql
if [ $? -ne 0 ]; then
printf "Error: Cannot execute create-schema-view.sql\n"
exit 11
fi
CP=./ CP=./
CP=${CP}$PATHSEP$CATALINA_HOME/conf CP=${CP}$PATHSEP$CATALINA_HOME/conf

View File

@ -55,11 +55,6 @@ if [ ! -f create-index-fk.sql ]; then
exit 6; exit 6;
fi fi
if [ ! -f create-schema-view.sql ]; then
printf "Error: Unable to find create-schema-view.sql\n"
exit 7
fi
PATHSEP=':' PATHSEP=':'
if [[ $OSTYPE == "cygwin" ]] ; then if [[ $OSTYPE == "cygwin" ]] ; then
@ -109,12 +104,6 @@ if [ $? -ne 0 ]; then
exit 11 exit 11
fi fi
mysql --user=cloud --password=cloud cloud < create-schema-view.sql
if [ $? -ne 0 ]; then
printf "Error: Cannot execute create-schema-view.sql\n"
exit 11
fi
mysql --user=cloud --password=cloud cloud < create-schema-simulator.sql mysql --user=cloud --password=cloud cloud < create-schema-simulator.sql
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
printf "Error: Cannot execute create-schema-simulator.sql\n" printf "Error: Cannot execute create-schema-simulator.sql\n"