Index: branches/5.2.x/core/install/upgrades.sql
===================================================================
diff -u -r14474 -r14572
--- branches/5.2.x/core/install/upgrades.sql	(.../upgrades.sql)	(revision 14474)
+++ branches/5.2.x/core/install/upgrades.sql	(.../upgrades.sql)	(revision 14572)
@@ -1995,6 +1995,30 @@
 
 # ===== v 5.1.1 =====
 
+# ===== v 5.1.2-B1 =====
+DROP TABLE EmailSubscribers;
+DROP TABLE IgnoreKeywords;
+DROP TABLE IgnoreKeywords;
+ALTER TABLE PermissionConfig DROP ErrorMessage;
+
+# ===== v 5.1.2-B2 =====
+
+# ===== v 5.1.2-RC1 =====
+DROP TABLE Stylesheets;
+DROP TABLE StylesheetSelectors;
+DROP TABLE SysCache;
+DROP TABLE TagAttributes;
+DROP TABLE TagLibrary;
+
+DELETE FROM Phrase WHERE PhraseKey IN (
+	'LA_FLD_STYLESHEETID', 'LA_PROMPT_STYLESHEET', 'LA_TAB_STYLESHEETS', 'LA_TITLE_ADDING_STYLESHEET',
+	'LA_TITLE_EDITING_STYLESHEET', 'LA_TITLE_NEW_STYLESHEET', 'LA_TITLE_STYLESHEETS', 'LA_TOOLTIP_NEWSTYLESHEET',
+	'LA_COL_SELECTORNAME', 'LA_COL_BASEDON', 'LA_FLD_SELECTORBASE', 'LA_FLD_SELECTORDATA', 'LA_FLD_SELECTORID',
+	'LA_FLD_SELECTORNAME'
+);
+
+# ===== v 5.1.2 =====
+
 # ===== v 5.1.3-B1 =====
 INSERT INTO ConfigurationValues VALUES (DEFAULT, 'UserEmailActivationTimeout', '', 'In-Portal:Users', 'in-portal:configure_users', 'la_title_General', 'la_config_UserEmailActivationTimeout', 'text', NULL, NULL, 10.051, 0, 0, NULL);
 
