Files
hotelsync/backend/migrations/090_reviews_source_qr.sql
HotelSync bb401095dc
Some checks failed
Deploy to Production / deploy (push) Has been cancelled
fix: add qr to reviews source constraint + notif type fix
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 17:26:20 +03:00

8 lines
275 B
SQL

-- 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'));