From ea28593c82cd97e48d47d489d7c117cbe592aed9 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 28 Oct 2013 23:01:35 +0000 Subject: For the CSV storage engine, don't allow adding nullable fields as well as disabling the add index option. Fixes issue #1546. --- Source/SPTableStructureLoading.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/SPTableStructureLoading.m') diff --git a/Source/SPTableStructureLoading.m b/Source/SPTableStructureLoading.m index bc90bc43..37e7e398 100644 --- a/Source/SPTableStructureLoading.m +++ b/Source/SPTableStructureLoading.m @@ -197,7 +197,6 @@ } } - selectedIndex = 0; if (encoding && collation) { @@ -369,7 +368,7 @@ [addFieldButton setEnabled:editingEnabled]; #ifndef SP_CODA - [addIndexButton setEnabled:editingEnabled]; + [addIndexButton setEnabled:editingEnabled && ![[[tableDataInstance statusValueForKey:@"Engine"] uppercaseString] isEqualToString:@"CSV"]]; #endif // Reload the views -- cgit v1.2.3