##----------------------------------------------------------------------------------#
 # MusicMiner Web Server															#
 # Name:		source/app/sql/upgrade_1.2.0.4.sql									#
 # Author:		Jesse J Morrow	(jesse@jessejmorrow.com)							#
 # Created:		2009-11-30															#
 # Updated:		2009-11-30															#
 # Compat:		MySQL 5																#
 # Copyright:	Copyright 2009 Soundminer Inc.										#
 # Purpose:		Upgrade the installed MusicMiner databases.							#
 # Version:		1.2.0.4 to 1.2.0.5													#
 #----------------------------------------------------------------------------------##

# Create a GUID for each MM installation
ALTER TABLE `mm_admin`.`schema` ADD COLUMN `guid` VARCHAR(255) NOT NULL AFTER `sm_ver`;
UPDATE `mm_admin`.`schema` SET `guid` = REPLACE(UUID(), '-', '');

#-----------------------------------------------------------------------------
# Versions
#-----------------------------------------------------------------------------

# Update version fields
UPDATE `mm_admin`.`schema` SET `db_ver` = '1.2.0.5';