Skip to content
Open
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,11 @@
<?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="lecuyerfra (generated)" id="1712491731800-1">
<sqlFile
encoding="UTF-8"
path="migrationDataExpertRule_2wt_20240625T151341Z.sql"
relativeToChangelogFile="true"
splitStatements="true"
stripComments="true"/>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-- Remove rules on no more used field RATIO_REGULATING for two windings transformers
DELETE FROM expert_rule_value t1
WHERE EXISTS (SELECT * FROM expert_rule t2 WHERE t1.id = t2.id AND t2.field='RATIO_REGULATING');

DELETE FROM expert_rule t
WHERE t.field='RATIO_REGULATING';

-- Remove rules on no more used field PHASE_REGULATING for two windings transformers
DELETE FROM expert_rule_value t1
WHERE EXISTS (SELECT * FROM expert_rule t2 WHERE t1.id = t2.id AND t2.field='PHASE_REGULATING');

DELETE FROM expert_rule t
WHERE t.field='PHASE_REGULATING';

-- Remove rules on field RATIO_REGULATION_MODE for two windings transformers (rule values list has changed)
DELETE FROM expert_rule_value t1
WHERE EXISTS (SELECT * FROM expert_rule t2 WHERE t1.id = t2.id AND t2.field='RATIO_REGULATION_MODE');

DELETE FROM expert_rule t
WHERE t.field='RATIO_REGULATION_MODE';
5 changes: 4 additions & 1 deletion src/main/resources/db/changelog/db.changelog-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ databaseChangeLog:
relativeToChangelogFile: true
- include:
file: changesets/changelog_20240426T120841Z.xml
relativeToChangelogFile: true
relativeToChangelogFile: true
- include:
file: changesets/changelog_20240625T151341Z.xml
relativeToChangelogFile: true