if exists (select * from sys.syscolumns where name = 'CreatedUtc' and id = object_id(N'dbo.SecureMessage'))
begin
	alter table dbo.SecureMessage drop column Status
    alter table dbo.SecureMessage drop column MessageType
    EXEC sp_RENAME 'dbo.SecureMessage.Title', 'Subject', 'COLUMN'
	EXEC sp_RENAME 'dbo.SecureMessage.ReadUtc', 'ReadDate', 'COLUMN'
	EXEC sp_RENAME 'dbo.SecureMessage.ExpiresUtc', 'ExpiresDate', 'COLUMN'
    EXEC sp_RENAME 'dbo.SecureMessage.CreatedUtc', 'CreationDate', 'COLUMN'
    EXEC sp_RENAME 'dbo.SecureMessage.RecipientId', 'RecipientUserId', 'COLUMN'
    EXEC sp_RENAME 'dbo.SecureMessage.SenderId', 'SenderUserId', 'COLUMN'
end;