mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
16e81130cc
commit
31d6f03308
File diff suppressed because it is too large
Load Diff
@ -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
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user