Files
mkd/backend/migrations/add_repair_status_fields.sql
2026-02-04 00:17:04 +05:00

10 lines
769 B
SQL
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- Новый статус: Договорились с подрядчиком
ALTER TYPE repair_request_status ADD VALUE IF NOT EXISTS 'agreed_with_contractor';
-- Поля для статусов: ожидание поставки, увезли на ремонт, договорились
ALTER TABLE office_repair_requests ADD COLUMN IF NOT EXISTS waiting_delivery_deadline TEXT;
ALTER TABLE office_repair_requests ADD COLUMN IF NOT EXISTS waiting_delivery_contacts TEXT;
ALTER TABLE office_repair_requests ADD COLUMN IF NOT EXISTS taken_for_repair_deadline TEXT;
ALTER TABLE office_repair_requests ADD COLUMN IF NOT EXISTS taken_for_repair_contacts TEXT;
ALTER TABLE office_repair_requests ADD COLUMN IF NOT EXISTS agreed_contractor_price NUMERIC(10, 2);