Skip to content

Commit

Permalink
upgrade network store to v1.16.0
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne LESOT <[email protected]>
  • Loading branch information
EtienneLt committed Sep 11, 2024
1 parent 7f95c07 commit d0ba11a
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<gridsuite-dependencies.version>31</gridsuite-dependencies.version>
<string-template.version>4.3.1</string-template.version>
<liquibase-hibernate-package>org.gridsuite.filter.server</liquibase-hibernate-package>
<powsybl-network-store.version>1.16.0</powsybl-network-store.version>
</properties>

<build>
Expand Down Expand Up @@ -112,9 +113,22 @@
<groupId>com.powsybl</groupId>
<artifactId>powsybl-contingency-api</artifactId>
</dependency>
<!-- FIXME: to be removed at next powsybl-ws-dependencies upgrade -->
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-network-store-iidm-impl</artifactId>
<version>${powsybl-network-store.version}</version>
</dependency>
<!-- FIXME: to be removed at next powsybl-ws-dependencies upgrade -->
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-network-store-model</artifactId>
<version>${powsybl-network-store.version}</version>
</dependency>
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-network-store-client</artifactId>
<version>${powsybl-network-store.version}</version>
</dependency>
<dependency>
<groupId>com.powsybl</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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="lesoteti (generated)" id="1725955903207-1">

</changeSet>
<changeSet id="1725955832122-1" author="lesoteti (generated)">
<sqlFile
encoding="UTF-8"
path="migrationDataIdentifierRule_20240910T120841Z.sql"
relativeToChangelogFile="true"
splitStatements="true"
stripComments="true"/>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit d0ba11a

Please sign in to comment.