Skip to content

Commit beeea95

Browse files
committed
Issues-523: commented a sql query
1 parent 87468c5 commit beeea95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/vanilla/bootstrap.early.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168

169169
// FIX: https://github.com/topcoder-platform/forums/issues/479
170170
// Re-calculate count of WatchedCategories if WatchedCategories is null
171-
Gdn::sql()->query('update GDN_User u set u.CountWatchedCategories = (
172-
select count(c.CategoryID) from GDN_Category c, (select distinct CAST(SUBSTRING_INDEX(um.Name, ".", -1) as UNSIGNED) as CategoryID from GDN_UserMeta um
173-
where um.Name LIKE "Preferences.%" AND UserID = u.UserID and Value = 1) ws where ws.CategoryID = c.CategoryID) where CountWatchedCategories is null', 'update');
171+
// Gdn::sql()->query('update GDN_User u set u.CountWatchedCategories = (
172+
// select count(c.CategoryID) from GDN_Category c, (select distinct CAST(SUBSTRING_INDEX(um.Name, ".", -1) as UNSIGNED) as CategoryID from GDN_UserMeta um
173+
// where um.Name LIKE "Preferences.%" AND UserID = u.UserID and Value = 1) ws where ws.CategoryID = c.CategoryID) where CountWatchedCategories is null', 'update');
174174
}

0 commit comments

Comments
 (0)