Skip to content

Commit

Permalink
check if dead trigger is forced to rebuild (schema change)
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Dec 21, 2007
1 parent bd82f95 commit 6c2690a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -308,7 +308,7 @@ private TriggerHistory rebuildTriggerIfNecessary(boolean forceRebuild, Trigger t
boolean isDeadTrigger = !trigger.isSyncOnInsert() && !trigger.isSyncOnUpdate()
&& !trigger.isSyncOnDelete();

if (audit == null && (oldAudit == null || (!triggerExists && create) || isDeadTrigger)) {
if (audit == null && (oldAudit == null || (!triggerExists && create) || (isDeadTrigger && forceRebuild))) {
configurationService.insert(newTriggerHist);
audit = configurationService.getLatestHistoryRecordFor(trigger.getTriggerId());
}
Expand Down

0 comments on commit 6c2690a

Please sign in to comment.