9 lines
443 B
SQL
9 lines
443 B
SQL
-- Migration Script to Remove Resources, Bookings, and Related Data Tables
|
|
-- This will drop tables in correct order (respecting foreign key dependencies)
|
|
-- Use with caution - this operation cannot be easily reversed
|
|
|
|
DROP TABLE IF EXISTS Booking CASCADE;
|
|
DROP TABLE IF EXISTS ResourcePermission CASCADE;
|
|
DROP TABLE IF EXISTS Resource CASCADE;
|
|
|
|
SELECT 'Resources, bookings, and related permissions have been removed successfully.' AS message; |