From beeea957fb1d3bf0b964708205da6459c47ab825 Mon Sep 17 00:00:00 2001 From: Bogdanova Olga Date: Sun, 4 Apr 2021 00:04:38 +0300 Subject: [PATCH] Issues-523: commented a sql query --- config/vanilla/bootstrap.early.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/vanilla/bootstrap.early.php b/config/vanilla/bootstrap.early.php index 06b250f..62dcc72 100644 --- a/config/vanilla/bootstrap.early.php +++ b/config/vanilla/bootstrap.early.php @@ -168,7 +168,7 @@ // FIX: https://github.com/topcoder-platform/forums/issues/479 // Re-calculate count of WatchedCategories if WatchedCategories is null - Gdn::sql()->query('update GDN_User u set u.CountWatchedCategories = ( - select count(c.CategoryID) from GDN_Category c, (select distinct CAST(SUBSTRING_INDEX(um.Name, ".", -1) as UNSIGNED) as CategoryID from GDN_UserMeta um - where um.Name LIKE "Preferences.%" AND UserID = u.UserID and Value = 1) ws where ws.CategoryID = c.CategoryID) where CountWatchedCategories is null', 'update'); + // Gdn::sql()->query('update GDN_User u set u.CountWatchedCategories = ( + // select count(c.CategoryID) from GDN_Category c, (select distinct CAST(SUBSTRING_INDEX(um.Name, ".", -1) as UNSIGNED) as CategoryID from GDN_UserMeta um + // where um.Name LIKE "Preferences.%" AND UserID = u.UserID and Value = 1) ws where ws.CategoryID = c.CategoryID) where CountWatchedCategories is null', 'update'); } \ No newline at end of file