Browse Source

Birth certificate updated

Andrew Grant 6 months ago
parent
commit
5680899ef7

+ 1 - 1
docs/additions.txt

@@ -12,7 +12,7 @@
 11: Validator
 12: Validator Test
 13: Switch to uat
-13A: In the database window select the uat database
+13A: In the database window select the uat database *** and then refresh it***
 14: Generate changelog (ctrl-shift-A) as sql
 14A:Edit the file to add COLUMN IF NOT EXISTS to the entries
 15: Add the new file to master.xml

+ 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
 
 

+ 15 - 0
src/main/resources/db/changelog/2025/05/30-01-changelog.sql

@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
+ *
+ */
+
+-- liquibase formatted sql
+
+-- changeset apg:1748566637297-1
+ALTER TABLE `birth_certificate`
+    ADD COLUMN  IF NOT EXISTS `certificate_date`   VARCHAR(255) NULL,
+    ADD COLUMN  IF NOT EXISTS `certificate_number` VARCHAR(255) NULL,
+    ADD COLUMN  IF NOT EXISTS `place_id`           BIGINT       NULL;
+
+
+

+ 11 - 0
src/main/resources/db/changelog/2025/05/30-02-changelog.sql

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

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

@@ -22,5 +22,7 @@
     <include file="/db/changelog/2025/05/20-01-changelog.sql"/>
     <include file="/db/changelog/2025/05/22-01-changelog.sql"/>
     <include file="/db/changelog/2025/05/26-01-changelog.sql"/>
+    <include file="/db/changelog/2025/05/30-01-changelog.sql"/>
+    <include file="/db/changelog/2025/05/30-02-changelog.sql"/>
 
 </databaseChangeLog>