Ver código fonte

Informant details added to uat

Andrew Grant 5 meses atrás
pai
commit
24374c68a4

+ 1 - 1
src/main/resources/application.properties

@@ -2,7 +2,7 @@ spring.application.name=grants
 server.port=8086
 server.servlet.context-path=/grants
 spring.mvc.format.date=dd-MM-yyyy
-spring.profiles.active=dev
+spring.profiles.active=uat
 logging.level.scot.carricksoftware=trace
 
 

+ 17 - 0
src/main/resources/db/changelog/2025/06/27-01-changelog.sql

@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
+ *
+ */
+
+-- liquibase formatted sql
+
+-- changeset apg:1751020095145-1
+ALTER TABLE birth_certificate
+    ADD informant_id            BIGINT       NULL,
+    ADD informant_qualification VARCHAR(255) NULL,
+    ADD untracked_informant     VARCHAR(255) NULL,
+    ADD when_registered         VARCHAR(255) NULL,
+    ADD where_born_id           BIGINT       NULL,
+    ADD where_registered        VARCHAR(255) NULL;
+
+

+ 12 - 0
src/main/resources/db/changelog/2025/06/27-02-changelog.sql

@@ -0,0 +1,12 @@
+/*
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
+ *
+ */
+
+-- liquibase formatted sql
+
+-- changeset apg:1751020095145-7
+ALTER TABLE birth_certificate
+    ADD CONSTRAINT FK_BIRTHCERTIFICATE_ON_INFORMANT FOREIGN KEY (informant_id) REFERENCES person (id);
+
+

+ 14 - 0
src/main/resources/db/changelog/2025/06/27-03-changelog.sql

@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
+ *
+ */
+
+-- liquibase formatted sql
+
+-- changeset apg:1751020095145-1
+
+
+-- changeset apg:1751020095145-8
+ALTER TABLE birth_certificate
+    ADD CONSTRAINT FK_BIRTHCERTIFICATE_ON_WHERE_BORN FOREIGN KEY (where_born_id) REFERENCES place (id);
+

+ 3 - 0
src/main/resources/db/changelog/master.xml

@@ -32,6 +32,9 @@
     <include file="/db/changelog/2025/06/07-03-changelog.sql"/>
     <include file="/db/changelog/2025/06/19-01-changelog.sql"/>
     <include file="/db/changelog/2025/06/19-02-changelog.sql"/>
+    <include file="/db/changelog/2025/06/27-01-changelog.sql"/>
+    <include file="/db/changelog/2025/06/27-02-changelog.sql"/>
+    <include file="/db/changelog/2025/06/27-03-changelog.sql"/>
 
 
 </databaseChangeLog>