aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authormtvee <emptyvee@gmail.com>2010-04-06 17:35:27 +0000
committermtvee <emptyvee@gmail.com>2010-04-06 17:35:27 +0000
commit2b1c1fb175ef5702ee00e5285226e642039b4afd (patch)
tree5a20db87e549050dad49615406761fe92cc4d6dc /Source
parent139c7223197461493c89021c2cbaa840053f0511 (diff)
downloadsequelpro-2b1c1fb175ef5702ee00e5285226e642039b4afd.tar.gz
sequelpro-2b1c1fb175ef5702ee00e5285226e642039b4afd.tar.bz2
sequelpro-2b1c1fb175ef5702ee00e5285226e642039b4afd.zip
fix for referential action not showing in relations view in certain circumstances
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableRelations.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m
index 34b18eae..0d3c7d19 100644
--- a/Source/SPTableRelations.m
+++ b/Source/SPTableRelations.m
@@ -497,8 +497,8 @@
[[constraint objectForKey:@"columns"] objectAtIndex:0], @"columns",
[constraint objectForKey:@"ref_table"], @"fk_table",
[constraint objectForKey:@"ref_columns"], @"fk_columns",
- [constraint objectForKey:@"update"], @"on_update",
- [constraint objectForKey:@"delete"], @"on_delete",
+ ([constraint objectForKey:@"update"] ? [constraint objectForKey:@"update"] : @""), @"on_update",
+ ([constraint objectForKey:@"delete"] ? [constraint objectForKey:@"delete"] : @""), @"on_delete",
nil]];
}