feat(MED-97): migrations fix timestamps

This commit is contained in:
2025-09-24 14:54:53 +03:00
parent ddd1728e4e
commit 7830b92571
5 changed files with 5 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
-- Drop existing constraint and index for analysis_response_elements
DROP INDEX IF EXISTS "medreport"."analysis_response_elements_unique_by_response_and_element";
ALTER TABLE "medreport"."analysis_response_elements"
DROP CONSTRAINT IF EXISTS "analysis_response_elements_unique_by_response_and_element";
DROP INDEX IF EXISTS "medreport"."analysis_response_elements_unique_by_response_and_element";
-- Create proper unique constraint that works with ON CONFLICT
ALTER TABLE "medreport"."analysis_response_elements"