db_query "update $DB_PARTITION_TABLE set software_release='$SOFTWARE_RELEASE' where software_release NOT NULL;"
db_query "update $DB_PARTITION_TABLE set software_release='$SOFTWARE_RELEASE' where software_release NOT NULL;"
db_query "update $DB_SOFTWARE_TABLE set url='$SOFTWARE_RELEASE' where url='$OLD_SOFTWARE_RELEASE';" || db_query "delete from $DB_SOFTWARE_TABLE where url='$OLD_SOFTWARE_RELEASE';"
SOFTWARE_RELEASE_LIST=$(db_query "select url from $DB_SOFTWARE_TABLE")
for SOFTWARE_RELEASE_TO_MIGRATE in $SOFTWARE_RELEASE_LIST; do
db_query "update $DB_SOFTWARE_TABLE set url='$SOFTWARE_RELEASE_MIGRATED' where url='$SOFTWARE_RELEASE_TO_MIGRATE';" || db_query "delete from $DB_SOFTWARE_TABLE where url='$SOFTWARE_RELEASE_TO_MIGRATE';"
done
# Change slapproxy database to have all instances stopped
# Change slapproxy database to have all instances stopped
db_query "update $DB_PARTITION_TABLE set requested_state='stopped';"
db_query "update $DB_PARTITION_TABLE set requested_state='stopped';"