We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d30bc0d + 0138458 commit 96cd286Copy full SHA for 96cd286
go/base/context.go
@@ -863,10 +863,10 @@ func (this *MigrationContext) ReadConfigFile() error {
863
// getGhostTriggerName generates the name of a ghost trigger, based on original trigger name
864
// or a given trigger name
865
func (this *MigrationContext) GetGhostTriggerName(triggerName string) string {
866
- if this.RemoveTriggerSuffix {
+ if this.RemoveTriggerSuffix && strings.HasSuffix(triggerName, this.TriggerSuffix){
867
return strings.TrimSuffix(triggerName, this.TriggerSuffix)
868
}
869
-
+ // else
870
return triggerName + this.TriggerSuffix
871
872
0 commit comments