summaryrefslogtreecommitdiff
path: root/SQL/mssql.upgrade.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-02-23 08:13:02 +0000
committeralecpl <alec@alec.pl>2011-02-23 08:13:02 +0000
commit3a5476d150419b46847dd922935f368c969519c1 (patch)
tree145ed6817352cb843c1ea7467eed24e81091418f /SQL/mssql.upgrade.sql
parent5744bfa54de0baacbf788bc30aacce3cd1089b9c (diff)
- Add index on contactgroupmembers.contact_id column.
Improves performance and fixes problem with contactgroupmembers table creation on MySQL 4.x
Diffstat (limited to 'SQL/mssql.upgrade.sql')
-rw-r--r--SQL/mssql.upgrade.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/SQL/mssql.upgrade.sql b/SQL/mssql.upgrade.sql
index 3d067924c..8534afdd3 100644
--- a/SQL/mssql.upgrade.sql
+++ b/SQL/mssql.upgrade.sql
@@ -101,3 +101,5 @@ GO
ALTER TABLE [dbo].[contacts] ADD [words] [text] COLLATE Latin1_General_CI_AI NULL
GO
+CREATE INDEX [IX_contactgroupmembers_contact_id] ON [dbo].[contactgroupmembers]([contact_id]) ON [PRIMARY]
+GO