Sfoglia il codice sorgente

! Forgot the in_inbox column for pm_recipients on install. Also, make it 1 by default.

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 anni fa
parent
commit
e1db44f1e4

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

@@ -1591,6 +1591,7 @@ CREATE TABLE {$db_prefix}pm_recipients (
   is_read tinyint(3) unsigned NOT NULL default '0',
   is_new tinyint(3) unsigned NOT NULL default '0',
   deleted tinyint(3) unsigned NOT NULL default '0',
+  in_inbox tinyint(3) unsigned NOT NULL default '1',
   PRIMARY KEY (id_pm, id_member),
   UNIQUE id_member (id_member, deleted, id_pm)
 ) ENGINE=MyISAM;

+ 2 - 1
other/install_2-1_postgresql.sql

@@ -2023,7 +2023,7 @@ CREATE INDEX {$db_prefix}personal_messages_msgtime ON {$db_prefix}personal_messa
 CREATE INDEX {$db_prefix}personal_messages_id_pm_head ON {$db_prefix}personal_messages (id_pm_head);
 
 #
-# Sequence for table `pm_recipients`
+# Sequence for table `pm_labels`
 #
 
 CREATE SEQUENCE {$db_prefix}pm_labels_seq;
@@ -2061,6 +2061,7 @@ CREATE TABLE {$db_prefix}pm_recipients (
   is_read smallint NOT NULL default '0',
   is_new smallint NOT NULL default '0',
   deleted smallint NOT NULL default '0',
+  in_inbox smallint NOT NULL default '1',
   PRIMARY KEY (id_pm, id_member)
 );
 

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

@@ -1724,6 +1724,7 @@ CREATE TABLE {$db_prefix}pm_recipients (
   is_read smallint NOT NULL default '0',
   is_new smallint NOT NULL default '0',
   deleted smallint NOT NULL default '0',
+  in_inbox smallint NOT NULL default '1',
   PRIMARY KEY (id_pm, id_member)
 );
 

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

@@ -591,7 +591,7 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}pm_labeled_messages (
 
 ---# Adding "in_inbox" column to pm_recipients
 ALTER TABLE {$db_prefix}pm_recipients
-ADD COLUMN in_inbox tinyint(3) NOT NULL default '0';
+ADD COLUMN in_inbox tinyint(3) NOT NULL default '1';
 ---#
 
 ---# Moving label info to new tables and updating rules...

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

@@ -674,7 +674,7 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}pm_labeled_messages (
 
 ---# Adding "in_inbox" column to pm_recipients
 ALTER TABLE {$db_prefix}pm_recipients
-ADD COLUMN in_inbox smallint NOT NULL default '0';
+ADD COLUMN in_inbox smallint NOT NULL default '1';
 ---#
 
 ---# Moving label info to new tables and updating rules...

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

@@ -651,7 +651,7 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}pm_labeled_messages (
 
 ---# Adding "in_inbox" column to pm_recipients
 ALTER TABLE {$db_prefix}pm_recipients
-ADD COLUMN in_inbox tinyint(3) NOT NULL default '0';
+ADD COLUMN in_inbox tinyint(3) NOT NULL default '1';
 ---#
 
 ---# Moving label info to new tables and updating rules...