Make sure to drop base tables (and cascade)

This commit is contained in:
Tom Russell 2018-10-21 19:46:14 +00:00
parent 710919cecd
commit 43f3f4c27e

View File

@ -1,10 +1,10 @@
-- Drop all tables -- Drop all tables
ALTER TABLE buildings DROP COLUMN IF EXISTS revision_id; DROP TABLE IF EXISTS logs CASCADE;
DROP TABLE IF EXISTS logs; DROP TABLE IF EXISTS users CASCADE;
DROP TABLE IF EXISTS users;
DROP TABLE IF EXISTS user_sessions; DROP TABLE IF EXISTS user_sessions;
DROP TABLE IF EXISTS user_categories; DROP TABLE IF EXISTS user_categories;
DROP TABLE IF EXISTS user_access_levels; DROP TABLE IF EXISTS user_access_levels;
DROP TABLE IF EXISTS building_properties; DROP TABLE IF EXISTS building_properties;
DROP TABLE IF EXISTS buildings; DROP TABLE IF EXISTS buildings CASCADE;
DROP TABLE IF EXISTS geometries; DROP TABLE IF EXISTS geometries CASCADE;