From d0ba11adc706ccb457181827f2e6a5c7e985a160 Mon Sep 17 00:00:00 2001 From: Etienne LESOT Date: Wed, 11 Sep 2024 13:57:20 +0200 Subject: [PATCH] upgrade network store to v1.16.0 Signed-off-by: Etienne LESOT --- pom.xml | 14 ++++++++++++++ .../changesets/changelog_20240910T120841Z.xml | 14 ++++++++++++++ ...ionDataIdentifierRule_20240910T120841Z.sql | 19 +++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 src/main/resources/db/changelog/changesets/changelog_20240910T120841Z.xml create mode 100644 src/main/resources/db/changelog/changesets/migrationDataIdentifierRule_20240910T120841Z.sql diff --git a/pom.xml b/pom.xml index c1bab86e..f60e074a 100644 --- a/pom.xml +++ b/pom.xml @@ -45,6 +45,7 @@ 31 4.3.1 org.gridsuite.filter.server + 1.16.0 @@ -112,9 +113,22 @@ com.powsybl powsybl-contingency-api + + + com.powsybl + powsybl-network-store-iidm-impl + ${powsybl-network-store.version} + + + + com.powsybl + powsybl-network-store-model + ${powsybl-network-store.version} + com.powsybl powsybl-network-store-client + ${powsybl-network-store.version} com.powsybl diff --git a/src/main/resources/db/changelog/changesets/changelog_20240910T120841Z.xml b/src/main/resources/db/changelog/changesets/changelog_20240910T120841Z.xml new file mode 100644 index 00000000..d4ea5c36 --- /dev/null +++ b/src/main/resources/db/changelog/changesets/changelog_20240910T120841Z.xml @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/src/main/resources/db/changelog/changesets/migrationDataIdentifierRule_20240910T120841Z.sql b/src/main/resources/db/changelog/changesets/migrationDataIdentifierRule_20240910T120841Z.sql new file mode 100644 index 00000000..6c6384aa --- /dev/null +++ b/src/main/resources/db/changelog/changesets/migrationDataIdentifierRule_20240910T120841Z.sql @@ -0,0 +1,19 @@ +ALTER TABLE identifier_list_filter ADD COLUMN equipment_typ varchar; +UPDATE identifier_list_filter SET equipment_typ = 'LINE' WHERE equipment_type = 0; +UPDATE identifier_list_filter SET equipment_typ = 'GENERATOR' WHERE equipment_type = 1; +UPDATE identifier_list_filter SET equipment_typ = 'LOAD' WHERE equipment_type = 2; +UPDATE identifier_list_filter SET equipment_typ = 'SHUNT_COMPENSATOR' WHERE equipment_type = 3; +UPDATE identifier_list_filter SET equipment_typ = 'STATIC_VAR_COMPENSATOR' WHERE equipment_type = 4; +UPDATE identifier_list_filter SET equipment_typ = 'BATTERY' WHERE equipment_type = 5; +UPDATE identifier_list_filter SET equipment_typ = 'BUS' WHERE equipment_type = 6; +UPDATE identifier_list_filter SET equipment_typ = 'BUSBAR_SECTION' WHERE equipment_type = 7; +UPDATE identifier_list_filter SET equipment_typ = 'DANGLING_LINE' WHERE equipment_type = 8; +UPDATE identifier_list_filter SET equipment_typ = 'LCC_CONVERTER_STATION' WHERE equipment_type = 9; +UPDATE identifier_list_filter SET equipment_typ = 'VSC_CONVERTER_STATION' WHERE equipment_type = 10; +UPDATE identifier_list_filter SET equipment_typ = 'TWO_WINDINGS_TRANSFORMER' WHERE equipment_type = 11; +UPDATE identifier_list_filter SET equipment_typ = 'THREE_WINDINGS_TRANSFORMER' WHERE equipment_type = 12; +UPDATE identifier_list_filter SET equipment_typ = 'HVDC_LINE' WHERE equipment_type = 13; +UPDATE identifier_list_filter SET equipment_typ = 'SUBSTATION' WHERE equipment_type = 14; +UPDATE identifier_list_filter SET equipment_typ = 'VOLTAGE_LEVEL' WHERE equipment_type = 15; +ALTER TABLE identifier_list_filter DROP COLUMN equipment_type; +ALTER TABLE identifier_list_filter RENAME COLUMN equipment_typ TO equipment_type; \ No newline at end of file