-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Etienne LESOT <[email protected]>
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/resources/db/changelog/changesets/changelog_20240910T120841Z.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
19 changes: 19 additions & 0 deletions
19
src/main/resources/db/changelog/changesets/migrationDataIdentifierRule_20240910T120841Z.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |