[CalendarServer-changes] [5784] CalendarServer/branches/new-store/txcaldav/calendarstore/postgres.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 18 17:06:38 PDT 2010
Revision: 5784
http://trac.macosforge.org/projects/calendarserver/changeset/5784
Author: wsanchez at apple.com
Date: 2010-06-18 17:06:36 -0700 (Fri, 18 Jun 2010)
Log Message:
-----------
Add some pkeys
Modified Paths:
--------------
CalendarServer/branches/new-store/txcaldav/calendarstore/postgres.py
Modified: CalendarServer/branches/new-store/txcaldav/calendarstore/postgres.py
===================================================================
--- CalendarServer/branches/new-store/txcaldav/calendarstore/postgres.py 2010-06-19 00:03:24 UTC (rev 5783)
+++ CalendarServer/branches/new-store/txcaldav/calendarstore/postgres.py 2010-06-19 00:06:36 UTC (rev 5784)
@@ -57,7 +57,7 @@
STATUS integer not null,
MESSAGE text, -- FIXME: xml?
- unique(CALENDAR_HOME_RESOURCE_ID, CALENDAR_RESOURCE_ID),
+ primary key(CALENDAR_HOME_RESOURCE_ID, CALENDAR_RESOURCE_ID),
unique(CALENDAR_HOME_RESOURCE_ID, CALENDAR_RESOURCE_NAME),
);
@@ -159,7 +159,7 @@
VALUE text not null, -- FIXME: xml?
VIEWER_UID varchar(255),
- unique(RESOURCE_ID, NAME, VIEWER_UID),
+ primary key(RESOURCE_ID, NAME, VIEWER_UID),
);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100618/d61738c0/attachment.html>
More information about the calendarserver-changes
mailing list