@@ -80,7 +80,7 @@
<description>Path Header(s) per RFC 3327</description>
</column>
- <column>
+ <column id="expires">
<name>expires</name>
<type>datetime</type>
<default>&DEFAULT_ALIASES_EXPIRES;</default>
@@ -191,6 +191,10 @@
<colref linkend="ruid"/>
<unique/>
</index>
+ <index>
+ <name>expires_idx</name>
+ <colref linkend="expires"/>
+ </index>
</table>
@@ -23,4 +23,5 @@ CREATE TABLE location (
);
CREATE INDEX location_account_contact_idx ON location (username, domain, contact);
+CREATE INDEX location_expires_idx ON location (expires);
) ENGINE=MyISAM;
CREATE INDEX account_contact_idx ON location (username, domain, contact);
+CREATE INDEX expires_idx ON location (expires);
@@ -31,4 +31,5 @@ END location_tr;
BEGIN map2users('location'); END;
/