##----------------------------------------------------------------------------------#
 # MusicMiner Web Server															#
 # Name:		source/app/sql/upgrade_1.1.8.sql									#
 # Author:		Jesse J Morrow	(jesse@jessejmorrow.com)							#
 # Created:		2009-03-04															#
 # Updated:		2009-03-04															#
 # Compat:		MySQL 5																#
 # Copyright:	Copyright 2008 Soundminer Inc.										#
 # Purpose:		Upgrade the installed MusicMiner databases.							#
 # Version:		1.1.8 to 1.1.8.1													#
 #----------------------------------------------------------------------------------##

# Add `registration_company` field to `sites` table
ALTER TABLE `mm_admin`.`site` ADD COLUMN `registration_company` BOOL NOT NULL DEFAULT 0 COMMENT 'Company field is required for registration.' AFTER `registration_alert`;

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