aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTablesList.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-10-28 23:01:35 +0000
committerstuconnolly <stuart02@gmail.com>2013-10-28 23:01:35 +0000
commitea28593c82cd97e48d47d489d7c117cbe592aed9 (patch)
treee83d2ba8100f4d3b346181771702ae842d5ec537 /Source/SPTablesList.m
parente916ec2f6ad186c4dcb744f5e4bca521057a8e17 (diff)
downloadsequelpro-ea28593c82cd97e48d47d489d7c117cbe592aed9.tar.gz
sequelpro-ea28593c82cd97e48d47d489d7c117cbe592aed9.tar.bz2
sequelpro-ea28593c82cd97e48d47d489d7c117cbe592aed9.zip
For the CSV storage engine, don't allow adding nullable fields as well as disabling the add index option. Fixes issue #1546.
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r--Source/SPTablesList.m6
1 files changed, 4 insertions, 2 deletions
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];