Переглянути джерело

! And the upgrader. Note that I still need to do the import of other stuff into here, but that will get there in time.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 роки тому
батько
коміт
8cb6b310b4

+ 9 - 0
other/upgrade_2-1_mysql.sql

@@ -268,6 +268,15 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}user_alerts (
 ) ENGINE=MyISAM;
 ---#
 
+---# Adding alert preferences.
+CREATE TABLE {$db_prefix}user_alerts_prefs (
+  id_member mediumint(8) unsigned NOT NULL default '0',
+  alert_pref varchar(32) NOT NULL default '',
+  alert_value tinyint(3) NOT NULL default '0',
+  PRIMARY KEY (id_member, alert_pref)
+) ENGINE=MyISAM;
+---#
+
 /******************************************************************************/
 --- Adding support for topic unwatch
 /******************************************************************************/

+ 9 - 0
other/upgrade_2-1_postgresql.sql

@@ -335,6 +335,15 @@ CREATE INDEX {$db_prefix}user_alerts_id_member ON {$db_prefix}user_alerts (id_me
 CREATE INDEX {$db_prefix}user_alerts_alert_time ON {$db_prefix}user_alerts (alert_time);
 ---#
 
+---# Adding alert preferences.
+CREATE TABLE IF NOT EXISTS {$db_prefix}user_alerts_prefs (
+  id_member int NOT NULL default '0',
+  alert_pref varchar(32) NOT NULL default '',
+  alert_value smallint(3) NOT NULL default '0',
+  PRIMARY KEY (id_member, alert_pref)
+);
+---#
+
 /******************************************************************************/
 --- Adding support for topic unwatch
 /******************************************************************************/

+ 9 - 0
other/upgrade_2-1_sqlite.sql

@@ -323,6 +323,15 @@ CREATE INDEX {$db_prefix}user_alerts_id_member ON {$db_prefix}user_alerts (id_me
 CREATE INDEX {$db_prefix}user_alerts_alert_time ON {$db_prefix}user_alerts (alert_time);
 ---#
 
+---# Adding alert preferences.
+CREATE TABLE IF NOT EXISTS {$db_prefix}user_alerts_prefs (
+  id_member int unsigned NOT NULL default '0',
+  alert_pref varchar(32) NOT NULL default '',
+  alert_value tinyint(3) NOT NULL default '0',
+  PRIMARY KEY (id_member, alert_pref)
+);
+---#
+
 /******************************************************************************/
 --- Adding support for topic unwatch
 /******************************************************************************/