Browse Source

Birth Certificate extra fields

Andrew Grant 6 months ago
parent
commit
a723ae66da

+ 1 - 1
src/main/java/scot/carricksoftware/grants/domains/certificates/BaseCertificate.java

@@ -44,7 +44,7 @@ public class BaseCertificate extends BaseEntity {
     @Column(name = "`volume`")
     @Column(name = "`volume`")
     private String volume;
     private String volume;
 
 
-    @Column(name = "`Number`")
+    @Column(name = "`number`")
     private String number;
     private String number;
 
 
     @SuppressWarnings("unused")
     @SuppressWarnings("unused")

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

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

+ 15 - 0
src/main/resources/db/changelog/2025/06/02-01-changelog.sql

@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
+ *
+ */
+
+-- liquibase formatted sql
+
+-- changeset apg:1748821997702-1
+ALTER TABLE `birth_certificate`
+    ADD `number`                 VARCHAR(255) NULL,
+    ADD `registration_authority` BIGINT       NULL,
+    ADD `volume`                 VARCHAR(255) NULL;
+
+
+

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

@@ -0,0 +1,12 @@
+/*
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
+ *
+ */
+
+-- liquibase formatted sql
+
+
+-- changeset apg:1748821997702-4
+ALTER TABLE `birth_certificate`
+    ADD CONSTRAINT FK_BIRTHCERTIFICATE_ON_REGISTRATION_AUTHORITY FOREIGN KEY (`registration_authority`) REFERENCES `organisation` (`id`);
+

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

@@ -25,6 +25,8 @@
     <include file="/db/changelog/2025/05/30-01-changelog.sql"/>
     <include file="/db/changelog/2025/05/30-01-changelog.sql"/>
     <include file="/db/changelog/2025/05/30-02-changelog.sql"/>
     <include file="/db/changelog/2025/05/30-02-changelog.sql"/>
     <include file="/db/changelog/2025/05/31-01-changelog.sql"/>
     <include file="/db/changelog/2025/05/31-01-changelog.sql"/>
+    <include file="/db/changelog/2025/06/02-01-changelog.sql"/>
+    <include file="/db/changelog/2025/06/02-02-changelog.sql"/>
 
 
 
 
 </databaseChangeLog>
 </databaseChangeLog>