From 29ce01947ae71e461cb56949ebdd828e79bedf53 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 20 Jan 2012 16:43:48 +0000 Subject: [PATCH] Monotone-Parent: 72afba9e20695bc88d32c0eb61dd396b9f67e013 Monotone-Revision: e13dda2a639bb68b9e67d7b4dd75235d9d98ef1b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-01-20T16:43:48 --- SOPE/GDLContentStore/ChangeLog | 5 +++++ SOPE/GDLContentStore/GCSSpecialQueries.m | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/SOPE/GDLContentStore/ChangeLog b/SOPE/GDLContentStore/ChangeLog index 377624de2..0fa2d0883 100644 --- a/SOPE/GDLContentStore/ChangeLog +++ b/SOPE/GDLContentStore/ChangeLog @@ -1,3 +1,8 @@ +2012-01-20 Wolfgang Sourdeau + + * GCSSpecialQueries.m (-createSessionsFolderWithName:): declare + c_id as primary key to make sure it's indexed. + 2011-12-08 Wolfgang Sourdeau * GCSFolder.m (-releaseChannel:): perform the debug logging BEFORE diff --git a/SOPE/GDLContentStore/GCSSpecialQueries.m b/SOPE/GDLContentStore/GCSSpecialQueries.m index 84468906c..7bd771c7c 100644 --- a/SOPE/GDLContentStore/GCSSpecialQueries.m +++ b/SOPE/GDLContentStore/GCSSpecialQueries.m @@ -190,7 +190,7 @@ { static NSString *sqlFolderFormat = (@"CREATE TABLE %@ (" - @" c_id VARCHAR(255) NOT NULL," + @" c_id VARCHAR(255) NOT NULL PRIMARY KEY," @" c_value VARCHAR(255) NOT NULL," @" c_creationdate INT4 NOT NULL," @" c_lastseen INT4 NOT NULL)"); @@ -284,7 +284,7 @@ { static NSString *sqlFolderFormat = (@"CREATE TABLE %@ (" - @" c_id VARCHAR(255) NOT NULL," + @" c_id VARCHAR(255) NOT NULL PRIMARY KEY," @" c_value VARCHAR(255) NOT NULL," @" c_creationdate INT NOT NULL," @" c_lastseen INT NOT NULL)"); @@ -377,7 +377,7 @@ { static NSString *sqlFolderFormat = (@"CREATE TABLE %@ (" - @" c_id VARCHAR2(255) NOT NULL," + @" c_id VARCHAR2(255) NOT NULL PRIMARY KEY," @" c_value VARCHAR2(255) NOT NULL," @" c_creationdate INTEGER NOT NULL," @" c_lastseen INTEGER NOT NULL)");