Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

added changelog 1.29 + 1.30 queries #86

Merged
merged 2 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions changelog/db.changelog-1.29.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.9.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.9.xsd">
<changeSet author="Leigh Godson" id="1">
<tagDatabase tag="v1.29.0" />
</changeSet>
<changeSet author="Leigh Godson" id="2">
<sql>
UPDATE "paymentRequests"
SET "flagId" = 1, "sourceSystem" = 'SFIA'
WHERE "schemeId" = 12 AND "sourceSystem" = 'Injection'
</sql>
</changeSet>
</databaseChangeLog>
18 changes: 18 additions & 0 deletions changelog/db.changelog-1.30.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.9.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.9.xsd">
<changeSet author="Leigh Godson" id="1">
<tagDatabase tag="v1.30.0" />
</changeSet>
<changeSet author="Leigh Godson" id="2">
<sql>
INSERT INTO schedules("settlementId", category, "isActiveDocument")
SELECT st."settlementId" AS "settlementId", 'Statement' AS category, 'true' AS "isActiveDocument"
FROM settlements AS st
INNER JOIN "paymentRequests" AS pr
ON pr."invoiceNumber" = st."invoiceNumber" AND pr."flagId" = 1 AND pr.status = 'Completed'
LEFT JOIN schedules AS sc
ON st."settlementId" = sc."settlementId"
WHERE sc."settlementId" IS null
</sql>
</changeSet>
</databaseChangeLog>
2 changes: 2 additions & 0 deletions changelog/db.changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@
<include file="changelog/db.changelog-1.26.xml"/>
<include file="changelog/db.changelog-1.27.xml"/>
<include file="changelog/db.changelog-1.28.xml"/>
<include file="changelog/db.changelog-1.29.xml"/>
<include file="changelog/db.changelog-1.30.xml"/>
</databaseChangeLog>
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ffc-pay-statement-constructor",
"version": "1.12.12",
"version": "1.12.13",
"description": "Data construction for statement generation",
"homepage": "https://github.com/DEFRA/ffc-pay-statement-constructor",
"main": "app/index.js",
Expand Down