From bb401095dc3b24de0bfd387add89808e5e87183b Mon Sep 17 00:00:00 2001 From: HotelSync Date: Tue, 21 Apr 2026 17:26:20 +0300 Subject: [PATCH] fix: add qr to reviews source constraint + notif type fix Co-Authored-By: Claude Sonnet 4.6 --- backend/migrations/090_reviews_source_qr.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 backend/migrations/090_reviews_source_qr.sql diff --git a/backend/migrations/090_reviews_source_qr.sql b/backend/migrations/090_reviews_source_qr.sql new file mode 100644 index 0000000..179e94a --- /dev/null +++ b/backend/migrations/090_reviews_source_qr.sql @@ -0,0 +1,7 @@ +-- Migration 090 — Add 'qr' to reviews source constraint + +ALTER TABLE reviews DROP CONSTRAINT IF EXISTS reviews_source_check; + +ALTER TABLE reviews + ADD CONSTRAINT reviews_source_check + CHECK (source IN ('direct', 'booking_com', 'airbnb', 'google', 'tripadvisor', 'qr'));