db: The save()
function does not work properly when updating a row with the Postgres database
#41681
Unanswered
ialaminpro
asked this question in
Q&A
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.
-
Description:
This code not only updates the given ID, It is updates all my rows with the same title. After the disaster, I had to restore the backup of the 10 GB size database. Luckily I had a backup.
I was running the same code on MySQL server it is working fine, but on Postgres server it is not working as I like. I saw the problem was save function then I skipped save function and use update function
Movie::where("id", 1855613)->update(["title" =>'Ponteng School']);
Do you have any thoughts about this issue?
Beta Was this translation helpful? Give feedback.
All reactions