Andrew Grant vor 5 Monaten
Ursprung
Commit
9ab90dcaa9

+ 6 - 0
docs/enums.txt

@@ -1,3 +1,4 @@
+0:Switch to dev
 1:Create Enum
 2: Domain
 3: Domain getter and setter
@@ -10,3 +11,8 @@
 11: Bootstrap
 12: Bootstrap Test
 13: Modify the form
+14: Switch to uat
+15: Generate changelog (ctrl-shift-A) as sql
+16: Add the new file to master.xml
+16: Run in terminal  mvn clean test liquibase:update
+

+ 3 - 0
src/main/resources/application-uat.properties

@@ -2,6 +2,9 @@
 spring.datasource.url=jdbc:mariadb://git.carricksoftware.co.uk:3306/grants_uat
 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
 
+spring.datasource.username=apg
+spring.datasource.password=sjkis27
+
 
 
 

+ 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=debug
 
 

+ 11 - 0
src/main/resources/db/changelog/2025/04/11-01-changelog.sql

@@ -0,0 +1,11 @@
+/*
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
+ *
+ */
+
+-- liquibase formatted sql
+
+-- changeset apg:1744362868561-1
+ALTER TABLE census_entry
+    ADD relationship VARCHAR(255) NULL;
+

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

@@ -3,5 +3,6 @@
      xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
 
     <include file="/db/changelog/2025/04/08-01-changelog.xml"/>
+    <include file="/db/changelog/2025/04/11-01-changelog.sql"/>
 
 </databaseChangeLog>

+ 1 - 0
src/main/resources/liquibase.properties

@@ -6,6 +6,7 @@ url: jdbc:mariadb://git.carricksoftware.co.uk:3306/grants_uat
 username: apg
 password: sjkis27
 
+
 # generate "virtual db" out of hibernate entities
 #referenceUrl=hibernate:spring:com.zack.example.entity?dialect=org.hibernate.dialect
 #referenceDriver=liquibase.ext.hibernate.database.connection.HibernateDriver