Index: branches/5.3.x/core/install/upgrades.sql
===================================================================
diff -u -r15917 -r15938
--- branches/5.3.x/core/install/upgrades.sql	(.../upgrades.sql)	(revision 15917)
+++ branches/5.3.x/core/install/upgrades.sql	(.../upgrades.sql)	(revision 15938)
@@ -2948,3 +2948,10 @@
 INSERT INTO SystemSettings VALUES(DEFAULT, 'EmailDelivery', '2', 'In-Portal', 'in-portal:configure_advanced', 'la_section_SettingsMailling', 'la_config_EmailDelivery', 'radio', NULL, '1=la_opt_EmailDeliveryQueue||2=la_opt_EmailDeliveryImmediate', 50.11, 0, 1, NULL);
 
 DELETE FROM UserPersistentSessionData WHERE VariableName = 'email-queue[Default]columns_.';
+
+ALTER TABLE EmailLog
+	ADD ToUserId INT(11) DEFAULT NULL,
+	ADD ItemPrefix VARCHAR(50) NOT NULL DEFAULT '',
+	ADD ItemId INT(11) DEFAULT NULL;
+
+DELETE FROM UserPersistentSessionData WHERE VariableName = 'email-log[Default]columns_.';
