diff --git a/backend/migrations/069_bookings_source_website.sql b/backend/migrations/069_bookings_source_website.sql new file mode 100644 index 0000000..ea3c6ea --- /dev/null +++ b/backend/migrations/069_bookings_source_website.sql @@ -0,0 +1,6 @@ +-- Migration 069 — Add 'website' to allowed booking sources + +ALTER TABLE bookings DROP CONSTRAINT IF EXISTS bookings_source_check; + +ALTER TABLE bookings ADD CONSTRAINT bookings_source_check + CHECK (source IN ('direct','booking_com','airbnb','expedia','vrbo','website','other'));