소스 검색

! New tables for alerts preferences.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 년 전
부모
커밋
01496eb093
4개의 변경된 파일44개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      other/install_2-1_mysql.sql
  2. 11 0
      other/install_2-1_postgresql.sql
  3. 11 0
      other/install_2-1_sqlite.sql
  4. 11 0
      other/install_2-1_sqlite3.sql

+ 11 - 0
other/install_2-1_mysql.sql

@@ -2123,6 +2123,17 @@ CREATE TABLE {$db_prefix}user_alerts (
   KEY alert_time (alert_time)
 ) ENGINE=MyISAM;
 
+#
+# Table structure for table `user_alerts_prefs`
+#
+
+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;
+
 #
 # Table structure for table `user_drafts`
 #

+ 11 - 0
other/install_2-1_postgresql.sql

@@ -2677,6 +2677,17 @@ CREATE TABLE {$db_prefix}user_alerts (
 CREATE INDEX {$db_prefix}user_alerts_id_member ON {$db_prefix}user_alerts (id_member);
 CREATE INDEX {$db_prefix}user_alerts_alert_time ON {$db_prefix}user_alerts (alert_time);
 
+#
+# Table structure for table `user_alerts_prefs`
+#
+
+CREATE TABLE {$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)
+);
+
 #
 # Sequence for table `user_drafts`
 #

+ 11 - 0
other/install_2-1_sqlite.sql

@@ -2285,6 +2285,17 @@ CREATE TABLE {$db_prefix}user_alerts (
 CREATE INDEX {$db_prefix}user_alerts_id_member ON {$db_prefix}user_alerts (id_member);
 CREATE INDEX {$db_prefix}user_alerts_alert_time ON {$db_prefix}user_alerts (alert_time);
 
+#
+# Table structure for table `user_alerts_prefs`
+#
+
+CREATE TABLE {$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)
+);
+
 #
 # Table structure for table `user_drafts`
 #

+ 11 - 0
other/install_2-1_sqlite3.sql

@@ -2285,6 +2285,17 @@ CREATE TABLE {$db_prefix}user_alerts (
 CREATE INDEX {$db_prefix}user_alerts_id_member ON {$db_prefix}user_alerts (id_member);
 CREATE INDEX {$db_prefix}user_alerts_alert_time ON {$db_prefix}user_alerts (alert_time);
 
+#
+# Table structure for table `user_alerts_prefs`
+#
+
+CREATE TABLE {$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)
+);
+
 #
 # Table structure for table `user_drafts`
 #