Skip to content
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

Update rows instead of delete/create when using editMovies.js #15

Open
Zosoled opened this issue Jun 17, 2021 · 0 comments
Open

Update rows instead of delete/create when using editMovies.js #15

Zosoled opened this issue Jun 17, 2021 · 0 comments

Comments

@Zosoled
Copy link
Owner

Zosoled commented Jun 17, 2021

The current behavior of editMovies.js is to accept edits as an entirely new set of movies. After prompting the user for these edits, it will delete all the movies in the draft and reinsert the edited versions as new rows. We should call an UPDATE statement instead to minimize the risk of losing data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant