bug 8601: adding the upgrade script from 2.2.1 to 2.2.2

This commit is contained in:
abhishek 2011-02-25 17:14:57 -08:00
parent 46994153a9
commit 5c4078e296
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#!/bin/bash
#######
# mysql phase 1
echo Running upgrade for database: cloud from 2.2.1 to 2.2.2
mysql -u root -C cloud < 221to222.sql
if [ $? -gt 0 ]
then
exit 1
fi
echo Finished upgrade for database: cloud from 2.2.1 to 2.2.2
#######
# mysql phase 2
echo Running upgrade for database: cloud_usage from 2.2.1 to 2.2.2
mysql -u root -C cloud_usage < 221to222_usage.sql
if [ $? -gt 0 ]
then
exit 1
fi
echo Finished upgrade for database: cloud_usage from 2.2.1 to 2.2.2