diff --git a/scripts/create_tables.sql b/scripts/create_tables.sql index c767e07..f2390c3 100644 --- a/scripts/create_tables.sql +++ b/scripts/create_tables.sql @@ -1,8 +1,8 @@ BEGIN TRANSACTION; -DROP TABLE IF EXISTS "author"; -DROP TABLE IF EXISTS "quote"; -DROP TABLE IF EXISTS "category"; -DROP TABLE IF EXISTS "quotecategory"; +DROP TABLE IF EXISTS "quotecategory" CASCADE; +DROP TABLE IF EXISTS "author" CASCADE; +DROP TABLE IF EXISTS "quote" CASCADE; +DROP TABLE IF EXISTS "category" CASCADE; CREATE TABLE author( aid SERIAL PRIMARY KEY, fname TEXT,