-- Reverse of 101_caldav_multi_calendar.up.sql. -- -- Drop the new join + binding tables. CASCADE on the FK references -- isn't needed because we drop targets before bindings, and Postgres -- handles RLS policies / indexes automatically on DROP TABLE. -- -- The legacy paliad.appointments.caldav_uid / caldav_etag columns are -- untouched by the up migration, so they're untouched here too — -- rollback returns the system to the pre-Slice-1 state where those -- scalars are the single source of CalDAV truth. DROP TABLE IF EXISTS paliad.appointment_caldav_targets; DROP TABLE IF EXISTS paliad.user_calendar_bindings;