DROP TABLE EmailQueue;
CREATE TABLE EmailQueue (EmailQueueId int(10) unsigned NOT NULL auto_increment, ToEmail varchar(255) NOT NULL default '', `Subject` varchar(255) NOT NULL default '', MessageHeaders text, MessageBody longtext, Queued int(10) unsigned NOT NULL default '0', SendRetries int(10) unsigned NOT NULL default '0', LastSendRetry int(10) unsigned NOT NULL default '0', PRIMARY KEY  (EmailQueueId), KEY LastSendRetry (LastSendRetry), KEY SendRetries (SendRetries));
ALTER TABLE Events ADD ReplacementTags TEXT AFTER Event;

UPDATE Modules SET Version = '4.1.1' WHERE Name = 'In-Portal';