diff options
author | stuconnolly <stuart02@gmail.com> | 2013-10-28 23:01:35 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2013-10-28 23:01:35 +0000 |
commit | ea28593c82cd97e48d47d489d7c117cbe592aed9 (patch) | |
tree | e83d2ba8100f4d3b346181771702ae842d5ec537 /Source/SPTableStructureLoading.m | |
parent | e916ec2f6ad186c4dcb744f5e4bca521057a8e17 (diff) | |
download | sequelpro-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/SPTableStructureLoading.m')
-rw-r--r-- | Source/SPTableStructureLoading.m | 3 |
1 files changed, 1 insertions, 2 deletions
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 |