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

Unnecessary CASCADE? #31

Open
lascellesabercrombie opened this issue Jun 16, 2022 · 1 comment
Open

Unnecessary CASCADE? #31

lascellesabercrombie opened this issue Jun 16, 2022 · 1 comment

Comments

@lascellesabercrombie
Copy link

DROP TABLE IF EXISTS products CASCADE;

Since you're working with one table, I wasn't sure if the CASCADE was necessary. (I think this is about following up on foreign keys and deleting there too.) On the other hand, I don't think it hurts.

@joe-dev-public
Copy link
Contributor

Indeed, it's not necessary ☺️

(But I imagine if we removed it and then did have other tables, we'd forget to put it back for a bit at least :)

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

2 participants