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/SPTablesList.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/SPTablesList.m') diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index 3abde17d..fb07dfef 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -1686,13 +1686,15 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; selectedTableName = [[NSString alloc] initWithString:newName]; selectedTableType = newType; + [tableDocumentInstance loadTable:selectedTableName ofType:selectedTableType]; - if([[SPNavigatorController sharedNavigatorController] syncMode]) { + if ([[SPNavigatorController sharedNavigatorController] syncMode]) { NSMutableString *schemaPath = [NSMutableString string]; + [schemaPath setString:[tableDocumentInstance connectionID]]; - if([tableDocumentInstance database] && [[tableDocumentInstance database] length]) { + if ([tableDocumentInstance database] && [[tableDocumentInstance database] length]) { [schemaPath appendString:SPUniqueSchemaDelimiter]; [schemaPath appendString:[tableDocumentInstance database]]; [schemaPath appendString:SPUniqueSchemaDelimiter]; -- cgit v1.2.3