Skip to content
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet author="berrahmaach" id="update-shunt-compensator-formulas-switchedOnQAtNominalV">
<comment>Update switchedOnQAtNominalV formula to use maxQAtNominalV / maximumSectionCount only if it hasn't been modified</comment>
<sql dbms="postgresql">
UPDATE spreadsheet_column
SET formula = 'maxQAtNominalV / maximumSectionCount'
WHERE column_id = 'switchedOnQAtNominalV'
AND formula = 'switchedOnQAtNominalV';
</sql>
</changeSet>

<changeSet author="berrahmaach" id="update-shunt-compensator-formulas-switchedOnSusceptance">
<comment>Update switchedOnSusceptance formula to use maxSusceptance / maximumSectionCount only if it hasn't been modified</comment>
<sql dbms="postgresql">
UPDATE spreadsheet_column
SET formula = 'maxSusceptance / maximumSectionCount'
WHERE column_id = 'switchedOnSusceptance'
AND formula = 'switchedOnSusceptance';
</sql>
</changeSet>
</databaseChangeLog>
3 changes: 3 additions & 0 deletions src/main/resources/db/changelog/db.changelog-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ databaseChangeLog:
- include:
file: changesets/changelog_20250604T144112Z.xml
relativeToChangelogFile: true
- include:
file: changesets/changelog_20250612T140000Z.xml
relativeToChangelogFile: true
4 changes: 2 additions & 2 deletions src/main/resources/default-spreadsheet-config-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@
"name": "Switch-on Q at nominal voltage",
"type": "NUMBER",
"precision": 1,
"formula": "switchedOnQAtNominalV",
"formula": "maxQAtNominalV / maximumSectionCount",
"dependencies": null,
"id": "switchedOnQAtNominalV"
},
Expand All @@ -1354,7 +1354,7 @@
"name": "Switch-on susceptance",
"type": "NUMBER",
"precision": 5,
"formula": "switchedOnSusceptance",
"formula": "maxSusceptance / maximumSectionCount",
"dependencies": null,
"id": "switchedOnSusceptance"
},
Expand Down