We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e4bbcb commit 0138458Copy full SHA for 0138458
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