diff options
author | Alexey Shchepin <alexey@process-one.net> | 2017-10-27 15:20:29 +0300 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2017-10-27 15:20:29 +0300 |
commit | e1c8e88d87b5e1fbfeb24c9d5d06336274afde6e (patch) | |
tree | 5ede7e4bcec247a43e92e9c86c0c9dc42f7f18c7 /sql/mssql.sql | |
parent | Fix typespec (diff) |
Update SQL archive index to match mysql.sql
Diffstat (limited to '')
-rw-r--r-- | sql/mssql.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mssql.sql b/sql/mssql.sql index 6f309487a..f49246ec3 100644 --- a/sql/mssql.sql +++ b/sql/mssql.sql @@ -38,7 +38,7 @@ CREATE TABLE [dbo].[archive] ( )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
) TEXTIMAGE_ON [PRIMARY];
-CREATE INDEX [archive_username] ON [archive] (username)
+CREATE INDEX [archive_username_timestamp] ON [archive] (username, timestamp)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON);
CREATE INDEX [archive_timestamp] ON [archive] (timestamp)
|