-
Notifications
You must be signed in to change notification settings - Fork 105
Use DropFunctionAction
in remaning operations
#880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about this one.
pkg/migrations/trigger.go
Outdated
@@ -41,6 +41,11 @@ type createTriggerAction struct { | |||
cfg triggerConfig | |||
} | |||
|
|||
type dropTriggerAction struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this and the related code go with the other actions in dbactions.go
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this appears to duplicate the existing DropFunctionAction
pkg/migrations/trigger.go
Outdated
} | ||
} | ||
|
||
func (a *dropTriggerAction) Execute(ctx context.Context) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The action is called dropTriggerAction
but actually drops a function.
Ha, nice catch. I was looking for this action, but could not find it in |
b9c3713
to
f871c45
Compare
DBAction
: DropFunctionAction
DropFunctionAction
in remaning operations
Merging this branch will decrease overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. |
Related #742