FACN7 / MOK_Rental

0 stars 2 forks source link

Using CASCADE keyword to delete all references to a table/row #27

Open bobbysebolao opened 5 years ago

bobbysebolao commented 5 years ago

It's always a good idea to add the CASCADE keyword to SQL DROP TABLE commands, just to be sure that you're deleting all references to the tables you're deleting. You can add this in the db_build.sql file.

DROP TABLE IF EXISTS users, cars, rentals CASCADE;