diff options
author | bamse16 <marius@marius.me.uk> | 2010-07-11 15:01:13 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2010-07-11 15:01:13 +0000 |
commit | 473d19dfad6e8092266cfb082261cdafaf1062aa (patch) | |
tree | 38381e1c10ffb3b155abd23934218b52aec90f47 /Source/SPTableTriggers.h | |
parent | dddd6307acda804b4abbe000e9ba8fb379c658f9 (diff) | |
download | sequelpro-473d19dfad6e8092266cfb082261cdafaf1062aa.tar.gz sequelpro-473d19dfad6e8092266cfb082261cdafaf1062aa.tar.bz2 sequelpro-473d19dfad6e8092266cfb082261cdafaf1062aa.zip |
Added support for edit triggers. Doubleclick on a row and the Add trigger pops up
with all the fields prepopulated.
Edit works as 'DROP' old trigger and then 'CREATE' new trigger (since MySQL doesn't
have support for 'ALTER' trigger).
In case of error while adding the new trigger, when you add a new trigger, all the
info from the original trigger is preserved. (Don't know if this is the best solution).
Diffstat (limited to 'Source/SPTableTriggers.h')
-rw-r--r-- | Source/SPTableTriggers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPTableTriggers.h b/Source/SPTableTriggers.h index c03b5f2c..b1923830 100644 --- a/Source/SPTableTriggers.h +++ b/Source/SPTableTriggers.h @@ -52,6 +52,10 @@ MCPConnection *connection; NSMutableArray *triggerData; + + BOOL isEdit; + NSString *editTriggerName; + NSString *editTriggerStatement; } @property (readwrite, assign) MCPConnection *connection; |