summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Hesketh <josh@nitrotech.org>2014-10-16 14:54:06 +1100
committerJoshua Hesketh <josh@nitrotech.org>2014-10-16 14:54:06 +1100
commit2af90ed7f4bcf754bc9d2466d9ab297ed10129dd (patch)
tree7b02891041b11a1585ceef78a5952bb2b5658305
parent84a4b6433951871a7917a7978b0c502ab2451bcc (diff)
downloadturbo-hipster-2af90ed7f4bcf754bc9d2466d9ab297ed10129dd.tar.gz
Fix upgrade through stable versions
Change-Id: Ibaa8debe4a4e976e57b67ac28d5711bd366aa20b
-rwxr-xr-xturbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh b/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh
index 45f3687..83893cc 100755
--- a/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh
+++ b/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh
@@ -131,7 +131,7 @@ stable_release_db_sync() {
# Some databases are from Folsom
echo "Schema version is $version"
- if [ $version -le "133" ]
+ if [ $version -lt "161" ]
then
echo "Database is from Folsom! Upgrade via Grizzly"
git branch -D eol/grizzly || true
@@ -146,7 +146,7 @@ stable_release_db_sync() {
version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`
# Some databases are from Grizzly
echo "Schema version is $version"
- if [ $version -le "161" ]
+ if [ $version -lt "216" ]
then
echo "Database is from Grizzly! Upgrade via Havana"
git branch -D eol/havana || true
@@ -161,9 +161,9 @@ stable_release_db_sync() {
version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`
# Some databases are from Havana
echo "Schema version is $version"
- if [ $version -le "216" ]
+ if [ $version -lt "234" ]
then
- echo "Database is from Grizzly! Upgrade via Icehouse"
+ echo "Database is from Havana! Upgrade via Icehouse"
git branch -D stable/icehouse || true
git remote update
git checkout -b stable/icehouse