-- update the database from schema version 5
-- this version 6 fixes the ref types
--

UPDATE appVersion SET versionNum = 6, visibleVersion = 'DB reftype fix';

ALTER TABLE channelReferenceGroup DROP COLUMN referenceType;
ALTER TABLE channelReferenceGroup ADD COLUMN referenceType VARCHAR(64) DEFAULT NULL;
