From 9e33ce2c2ccf2baba2987255894a2074fa15f192 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 1 May 2005 15:07:52 +0000 Subject: [PATCH] User ->trackforums now defaults to OFF, to save CPU on default installs --- lib/db/mysql.php | 2 +- lib/db/mysql.sql | 2 +- lib/db/postgres7.php | 2 +- lib/db/postgres7.sql | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/db/mysql.php b/lib/db/mysql.php index 34c2da91ca8..cb99b9a50ea 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -1367,7 +1367,7 @@ function main_upgrade($oldversion=0) { } if ($oldversion < 2005042400) { // Add user tracking prefs field. - table_column('user', '', 'trackforums', 'int', '4', 'unsigned', '1', 'not null', 'autosubscribe'); + table_column('user', '', 'trackforums', 'int', '4', 'unsigned', '0', 'not null', 'autosubscribe'); } return $result; diff --git a/lib/db/mysql.sql b/lib/db/mysql.sql index e2146f289f6..3a64fd5c352 100644 --- a/lib/db/mysql.sql +++ b/lib/db/mysql.sql @@ -552,7 +552,7 @@ CREATE TABLE `prefix_user` ( `maildisplay` tinyint(2) unsigned NOT NULL default '2', `htmleditor` tinyint(1) unsigned NOT NULL default '1', `autosubscribe` tinyint(1) unsigned NOT NULL default '1', - `trackforums` tinyint(1) unsigned NOT NULL default '1', + `trackforums` tinyint(1) unsigned NOT NULL default '0', `timemodified` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index a4d9d46298e..65044d46f2a 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -1083,7 +1083,7 @@ function main_upgrade($oldversion=0) { } if ($oldversion < 2005042400) { // Add user tracking prefs field. - table_column('user', '', 'trackforums', 'int', '4', 'unsigned', '1', 'not null', 'autosubscribe'); + table_column('user', '', 'trackforums', 'int', '4', 'unsigned', '0', 'not null', 'autosubscribe'); } return $result; diff --git a/lib/db/postgres7.sql b/lib/db/postgres7.sql index 867cadb3af6..d5ef66ad6ff 100644 --- a/lib/db/postgres7.sql +++ b/lib/db/postgres7.sql @@ -390,7 +390,7 @@ CREATE TABLE prefix_user ( maildisplay integer NOT NULL default '2', htmleditor integer NOT NULL default '1', autosubscribe integer NOT NULL default '1', - trackforums integer NOT NULL default '1', + trackforums integer NOT NULL default '0', timemodified integer NOT NULL default '0' );