Index: branches/5.0.x/core/install/upgrades.sql
===================================================================
diff -u -N -r12733 -r12808
--- branches/5.0.x/core/install/upgrades.sql	(.../upgrades.sql)	(revision 12733)
+++ branches/5.0.x/core/install/upgrades.sql	(.../upgrades.sql)	(revision 12808)
@@ -1595,4 +1595,14 @@
 ALTER TABLE ItemFiles CHANGE CreatedOn CreatedOn INT(11) UNSIGNED NULL DEFAULT NULL;
 ALTER TABLE FormSubmissions CHANGE SubmissionTime SubmissionTime INT(11) NULL DEFAULT NULL;
 ALTER TABLE SessionLogs CHANGE SessionStart SessionStart INT(11) NULL DEFAULT NULL;
-ALTER TABLE Visits CHANGE VisitDate VisitDate INT(10) UNSIGNED NULL DEFAULT NULL;
\ No newline at end of file
+ALTER TABLE Visits CHANGE VisitDate VisitDate INT(10) UNSIGNED NULL DEFAULT NULL;
+
+# ===== v 5.0.2-B2 =====
+ALTER TABLE Theme
+	ADD LanguagePackInstalled TINYINT UNSIGNED NOT NULL DEFAULT '0',
+	ADD TemplateAliases TEXT,
+	ADD INDEX (LanguagePackInstalled);
+
+ALTER TABLE ThemeFiles
+	ADD TemplateAlias VARCHAR(255) NOT NULL DEFAULT '' AFTER FilePath,
+	ADD INDEX (TemplateAlias);
\ No newline at end of file
