Code: Select all
UPDATE phpbb_forums SET forum_flags = forum_flags + 64 WHERE forum_type = 1 AND forum_flags & 64 <> 1
JimA wrote:If you're using MySQL, this SQL query should enable Quick Reply in all forums.Code: Select all
UPDATE phpbb_forums SET forum_flags = forum_flags + 64 WHERE forum_type = 1 AND forum_flags & 64 <> 1
No need.malaxpina wrote:Can i add this SQL query in database_update.php? ¿How?
But i want add the sql query to database_update.php.Kevin Clark wrote:No need.malaxpina wrote:Can i add this SQL query in database_update.php? ¿How?
Just to go your database, click the SQL tab, paste, go, done.
Not that familiar with the forum_flags column, but shouldn't the last condition be:JimA wrote:If you're using MySQL, this SQL query should enable Quick Reply in all forums.Code: Select all
UPDATE phpbb_forums SET forum_flags = forum_flags + 64 WHERE forum_type = 1 AND forum_flags & 64 <> 1
Code: Select all
AND forum_flags & 64 <> 64
So everyone who tried that has problems now? In my forum a lot of records were updated when running this query...KlownPosse45 wrote: Not that familiar with the forum_flags column, but shouldn't the last condition be:
Code: Select all
AND forum_flags & 64 <> 64
No, no, it shouldn't really cause any problems. Most of your forum_flags will have been updated from a number below 64 and then there is no issue. You can check the new values in the table for forum_type = 1. I'm not sure the 128-bit marker is even used as a flag. If you have a bunch of new forum_flags in the 90's for instance, then it doesn't matter at all.vanya_y wrote:So everyone who tried that has problems now? In my forum a lot of records were updated when running this query...KlownPosse45 wrote: Not that familiar with the forum_flags column, but shouldn't the last condition be:
Code: Select all
AND forum_flags & 64 <> 64
Code: Select all
UPDATE phpbb_forums SET forum_flags = (forum_flags | 64) WHERE forum_type = 1
Indeed, it does exactly the same as:cYbercOsmOnauT wrote:The better way to do it (mySQL) isCode: Select all
UPDATE phpbb_forums SET forum_flags = (forum_flags | 64) WHERE forum_type = 1
Code: Select all
UPDATE phpbb_forums SET forum_flags = forum_flags + 64 WHERE forum_type = 1 AND forum_flags & 64 <> 64
Code: Select all
x & 64 <> 1