Index: branches/5.0.x/core/install/upgrades.sql
===================================================================
diff -u -r12593 -r12638
--- branches/5.0.x/core/install/upgrades.sql	(.../upgrades.sql)	(revision 12593)
+++ branches/5.0.x/core/install/upgrades.sql	(.../upgrades.sql)	(revision 12638)
@@ -1505,4 +1505,7 @@
 
 UPDATE Phrase SET PhraseKey = UPPER(Phrase);
 
-UPDATE Modules SET Loaded = 1 WHERE `Name` = 'In-Portal';
\ No newline at end of file
+UPDATE Modules SET Loaded = 1 WHERE `Name` = 'In-Portal';
+
+# ===== v 5.0.2 =====
+ALTER TABLE PortalGroup DROP ResourceId;
\ No newline at end of file
