Browse Source

! And we need to get the upgrader doing the same - note that the old 'always notify admins of registrations' should now be phased out in favour of using an alerts system - this allows admins to opt out of notifications.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 years ago
parent
commit
01f8edcd88
3 changed files with 15 additions and 3 deletions
  1. 5 1
      other/upgrade_2-1_mysql.sql
  2. 5 1
      other/upgrade_2-1_postgresql.sql
  3. 5 1
      other/upgrade_2-1_sqlite.sql

+ 5 - 1
other/upgrade_2-1_mysql.sql

@@ -275,6 +275,10 @@ CREATE TABLE {$db_prefix}user_alerts_prefs (
   alert_value tinyint(3) NOT NULL default '0',
   PRIMARY KEY (id_member, alert_pref)
 ) ENGINE=MyISAM;
+
+INSERT INTO {$db_prefix}user_alerts_prefs
+	(id_member, alert_pref, alert_value)
+VALUES (0, 'member_register', 1);
 ---#
 
 /******************************************************************************/
@@ -512,7 +516,7 @@ WHERE variable LIKE 'integrate_%';
 /******************************************************************************/
 ---# Showing contact details to guests should never happen.
 DELETE FROM {$db_prefix}settings
-WHERE variable IN ('enableStickyTopics', 'guest_hideContacts');
+WHERE variable IN ('enableStickyTopics', 'guest_hideContacts', 'notify_new_registration');
 ---#
 
 /******************************************************************************/

+ 5 - 1
other/upgrade_2-1_postgresql.sql

@@ -351,6 +351,10 @@ CREATE TABLE {$db_prefix}user_alerts_prefs (
   alert_value smallint NOT NULL default '0',
   PRIMARY KEY (id_member, alert_pref)
 );
+
+INSERT INTO {$db_prefix}user_alerts_prefs
+	(id_member, alert_pref, alert_value)
+VALUES (0, 'member_register', 1);
 ---#
 
 /******************************************************************************/
@@ -594,7 +598,7 @@ WHERE variable LIKE 'integrate_%';
 /******************************************************************************/
 ---# Showing contact details to guests should never happen.
 DELETE FROM {$db_prefix}settings
-WHERE variable IN ('enableStickyTopics', 'guest_hideContacts');
+WHERE variable IN ('enableStickyTopics', 'guest_hideContacts', 'notify_new_registration');
 ---#
 
 /******************************************************************************/

+ 5 - 1
other/upgrade_2-1_sqlite.sql

@@ -330,6 +330,10 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}user_alerts_prefs (
   alert_value tinyint(3) NOT NULL default '0',
   PRIMARY KEY (id_member, alert_pref)
 );
+
+INSERT INTO {$db_prefix}user_alerts_prefs
+	(id_member, alert_pref, alert_value)
+VALUES (0, 'member_register', 1);
 ---#
 
 /******************************************************************************/
@@ -585,7 +589,7 @@ WHERE variable LIKE 'integrate_%';
 /******************************************************************************/
 ---# Showing contact details to guests should never happen.
 DELETE FROM {$db_prefix}settings
-WHERE variable IN ('enableStickyTopics', 'guest_hideContacts');
+WHERE variable IN ('enableStickyTopics', 'guest_hideContacts', 'notify_new_registration');
 ---#
 
 /******************************************************************************/