Revert "Temporarily disable downgrade testing"

This reverts commit 2f09fbf243.

Change-Id: I57899fc1366c389c0f5468598e8ec3da0d2306ab
This commit is contained in:
Joshua Hesketh 2014-08-07 19:19:35 +10:00
parent a003f9e3c4
commit 29fa4424ad

View File

@ -242,18 +242,18 @@ pip_requires
db_sync "patchset" $2 $3 $4 $5 $6 $8
# Determine the schema version
#version=`mysql -u $4 --password=$5 $6 -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`
#echo "Schema version is $version"
version=`mysql -u $4 --password=$5 $6 -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`
echo "Schema version is $version"
#echo "Now downgrade all the way back to the last stable version (v$last_stable_version)"
#db_sync "downgrade" $2 $3 $4 $5 $6 $8 $last_stable_version
echo "Now downgrade all the way back to the last stable version (v$last_stable_version)"
db_sync "downgrade" $2 $3 $4 $5 $6 $8 $last_stable_version
# Determine the schema version
#version=`mysql -u $4 --password=$5 $6 -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`
#echo "Schema version is $version"
version=`mysql -u $4 --password=$5 $6 -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`
echo "Schema version is $version"
#echo "And now back up to head from the start of trunk"
#db_sync "patchset" $2 $3 $4 $5 $6 $8
echo "And now back up to head from the start of trunk"
db_sync "patchset" $2 $3 $4 $5 $6 $8
# Determine the final schema version
version=`mysql -u $4 --password=$5 $6 -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`