Преглед изворни кода

! 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 година
родитељ
комит
678224683a
2 измењених фајлова са 2 додато и 0 уклоњено
  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...