Compare commits

..
1 Commits
Author SHA1 Message Date
alec.turner 5e1cb0d8b4 update db init data to fix triage bug
The table `gender_based_violences` was missing a `triage_id` field, causing an
exception to occur in some cases when selecting the triage button. This change
alters the schema of the table to ensure the column is always present.
2024-04-25 15:12:52 -07:00
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -1 +1,4 @@
FROM streamlinehealth/streamline:signalytic FROM streamlinehealth/streamline:signalytic
# update db init data
COPY streamline_initial.sql /docker-entrypoint-initdb.d/
+1
View File
@@ -4411,6 +4411,7 @@ CREATE TABLE `gender_based_violences` (
`created_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL,
`triage_id` int DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;