add username to the device table
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Apr 2010 20:28:54 +0000 (16:28 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Apr 2010 20:28:54 +0000 (16:28 -0400)
horde/scripts/sql/horde_activesync.sql

index ee54e55..ca837d2 100644 (file)
@@ -20,7 +20,7 @@ CREATE TABLE horde_activesync_map (
 );
 
 CREATE INDEX activesync_map_devid_idx ON horde_activesync_map (sync_devid);
-CREATE INDEX activesync_map_message_idx ON horde_activesync_map(message_uid);
+CREATE INDEX activesync_map_message_idx ON horde_activesync_map (message_uid);
 
 CREATE TABLE horde_activesync_device (
     device_id         VARCHAR(255) NOT NULL,
@@ -30,7 +30,11 @@ CREATE TABLE horde_activesync_device (
     device_policykey  BIGINT DEFAULT 0,
     device_rwstatus   INTEGER,
     device_folders    TEXT,
+    device_user       VARCHAR(255),
 
 --
     PRIMARY KEY (device_id)
 );
+
+CREATE INDEX activesync_device_user_idx ON horde_activesync_device (device_user);
+