Browse Source

! These indexes are in the installer but apparently not the upgrader, so probably best they get added...

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 years ago
parent
commit
678224683a
2 changed files with 2 additions and 0 deletions
  1. 1 0
      other/upgrade_2-1_postgresql.sql
  2. 1 0
      other/upgrade_2-1_sqlite.sql

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

@@ -401,6 +401,7 @@ CREATE TABLE {$db_prefix}user_drafts (
 	to_list varchar(255) NOT NULL default '',
 	PRIMARY KEY (id_draft)
 );
+CREATE UNIQUE INDEX {$db_prefix}user_drafts_id_member ON {$db_prefix}user_drafts (id_member, id_draft, type);
 ---#
 
 ---# Adding draft permissions...

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

@@ -391,6 +391,7 @@ CREATE TABLE {$db_prefix}user_drafts (
 	to_list varchar(255) NOT NULL default '',
 	PRIMARY KEY (id_draft)
 );
+CREATE UNIQUE INDEX {$db_prefix}user_drafts_id_member ON {$db_prefix}user_drafts (id_member, id_draft, type);
 ---#
 
 ---# Adding draft permissions...