##----------------------------------------------------------------------------------#
 # MusicMiner Web Server															#
 # Name:		source/app/sql/upgrade_1.1.9.9.sql									#
 # Author:		Jesse J Morrow	(jesse@jessejmorrow.com)							#
 # Created:		2009-08-10															#
 # Updated:		2009-08-10															#
 # Compat:		MySQL 5																#
 # Copyright:	Copyright 2009 Soundminer Inc.										#
 # Purpose:		Upgrade the installed MusicMiner databases.							#
 # Version:		1.1.9.8 to 1.1.9.9													#
 #----------------------------------------------------------------------------------##

# Add `cue_orientation` field to `site` table
ALTER TABLE `mm_admin`.`site` ADD COLUMN `cue_orientation` ENUM('portrait','landscape') NOT NULL DEFAULT 'portrait' COMMENT 'Cuesheet PDF orientation.' AFTER `cue_footer`;

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