How to set a field to a specific Database Function #4268
cheung-chifung
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My issue closely relates to the discussion found here: Link to the discussion.
I am aiming to implement soft deletion by updating the
deleted_at
field to the current timestamp (now()
) for consistency.I have reviewed the documentation available at Ent Interceptors Documentation; however, it does not offer a method to set a value to a database function.
Considering that I only need to update this column when performing a deletion operation, the
UpdateDefault
method is not suitable for this scenario.Sample SQL query for reference:
Beta Was this translation helpful? Give feedback.
All reactions