Index: branches/5.3.x/core/install/upgrades.sql
===================================================================
diff -u -N -r15986 -r15999
--- branches/5.3.x/core/install/upgrades.sql	(.../upgrades.sql)	(revision 15986)
+++ branches/5.3.x/core/install/upgrades.sql	(.../upgrades.sql)	(revision 15999)
@@ -2994,3 +2994,12 @@
 ALTER TABLE UserGroupRelations DROP PRIMARY KEY;
 ALTER TABLE UserGroupRelations ADD Id int(11) NOT NULL auto_increment FIRST, ADD PRIMARY KEY (Id), ADD UNIQUE KEY UserGroup (PortalUserId, GroupId);
 ALTER TABLE SpamControl ADD Id int(11) NOT NULL auto_increment FIRST, ADD PRIMARY KEY (Id);
+
+INSERT INTO SystemSettings VALUES(DEFAULT, 'SSLDomain', '', 'In-Portal', 'in-portal:configure_advanced', 'la_section_SettingsSSL', 'la_config_SSLDomain', 'text', '', '', 30.01, 0, 1, NULL);
+INSERT INTO SystemSettings VALUES(DEFAULT, 'AdminSSLDomain', '', 'In-Portal', 'in-portal:configure_advanced', 'la_section_SettingsSSL', 'la_config_AdminSSLDomain', 'text', '', '', 30.02, 0, 0, NULL);
+DELETE FROM LanguageLabels WHERE PhraseKey IN ('LA_CONFIG_SSL_URL', 'LA_CONFIG_ADMINSSL_URL', 'LA_FLD_SSLURL');
+
+ALTER TABLE SiteDomains
+	CHANGE SSLUrl SSLDomainName VARCHAR(255) NOT NULL DEFAULT '',
+	CHANGE SSLUrlUsesRegExp SSLDomainNameUsesRegExp TINYINT(4) NOT NULL DEFAULT '0';
+DELETE FROM UserPersistentSessionData WHERE VariableName = 'site-domain[Default]columns_.';
