diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-10-09 00:24:33 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-10-09 00:24:33 +0000 |
commit | 869e355e7f4856dee3171520f549e32855f68dc5 (patch) | |
tree | 762f1f0c59b28489277aeded9fd85d2ce1877349 /Source | |
parent | a8bc3c8f6cedc76cd64babacaec4310737787edc (diff) | |
download | sequelpro-869e355e7f4856dee3171520f549e32855f68dc5.tar.gz sequelpro-869e355e7f4856dee3171520f549e32855f68dc5.tar.bz2 sequelpro-869e355e7f4856dee3171520f549e32855f68dc5.zip |
• display SPA in the Key column if a field has a spatial key
Question: Is it possible to assign an index to a geometry field other than SPATIAL?
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTableStructure.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m index 51f2e458..a51fa12e 100644 --- a/Source/SPTableStructure.m +++ b/Source/SPTableStructure.m @@ -209,7 +209,10 @@ if([[theIndex objectForKey:@"Key_name"] isEqualToString:@"PRIMARY"]) [field setObject:@"PRI" forKey:@"Key"]; else - [field setObject:(([[theIndex objectForKey:@"Non_unique"] isEqualToString:@"1"]) ? @"MUL" : @"UNI") forKey:@"Key"]; + if([[field objectForKey:@"typegrouping"] isEqualToString:@"geometry"]) + [field setObject:@"SPA" forKey:@"Key"]; + else + [field setObject:(([[theIndex objectForKey:@"Non_unique"] isEqualToString:@"1"]) ? @"MUL" : @"UNI") forKey:@"Key"]; break; } } |