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
Expand Up @@ -56,15 +56,15 @@ public ShortCircuitParametersEntity(@NonNull final ShortCircuitParametersEntity
private UUID id;

@Builder.Default
@Column(name = "withLimitViolations", columnDefinition = "boolean default true")
@Column(name = "withLimitViolations", nullable = false, columnDefinition = "boolean default true")
private boolean withLimitViolations = true;

@Builder.Default
@Column(name = "withVoltageResult", columnDefinition = "boolean default false")
@Column(name = "withVoltageResult", nullable = false, columnDefinition = "boolean default false")
private boolean withVoltageResult = false;

@Builder.Default
@Column(name = "withFeederResult", columnDefinition = "boolean default true")
@Column(name = "withFeederResult", nullable = false, columnDefinition = "boolean default true")
private boolean withFeederResult = true;

@Builder.Default
Expand All @@ -73,7 +73,7 @@ public ShortCircuitParametersEntity(@NonNull final ShortCircuitParametersEntity
private StudyType studyType = StudyType.TRANSIENT;

@Builder.Default
@Column(name = "minVoltageDropProportionalThreshold", columnDefinition = "double precision default 20.0")
@Column(name = "minVoltageDropProportionalThreshold", nullable = false, columnDefinition = "double precision default 20.0")
private double minVoltageDropProportionalThreshold = 20.0;

@Builder.Default
Expand All @@ -82,19 +82,19 @@ public ShortCircuitParametersEntity(@NonNull final ShortCircuitParametersEntity
private ShortCircuitPredefinedConfiguration predefinedParameters = ShortCircuitPredefinedConfiguration.ICC_MAX_WITH_NOMINAL_VOLTAGE_MAP;

@Builder.Default
@Column(name = "withLoads", columnDefinition = "boolean default false")
@Column(name = "withLoads", nullable = false, columnDefinition = "boolean default false")
private boolean withLoads = false;

@Builder.Default
@Column(name = "withShuntCompensators", columnDefinition = "boolean default false")
@Column(name = "withShuntCompensators", nullable = false, columnDefinition = "boolean default false")
private boolean withShuntCompensators = false;

@Builder.Default
@Column(name = "withVscConverterStations", columnDefinition = "boolean default true")
@Column(name = "withVscConverterStations", nullable = false, columnDefinition = "boolean default true")
private boolean withVscConverterStations = true;

@Builder.Default
@Column(name = "withNeutralPosition", columnDefinition = "boolean default true")
@Column(name = "withNeutralPosition", nullable = false, columnDefinition = "boolean default true")
private boolean withNeutralPosition = true;

@Builder.Default
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="chuinetri (generated)" id="1719214154012-1">
<addNotNullConstraint columnDataType="boolean" columnName="with_feeder_result" tableName="shortcircuit_parameters" validate="true"/>
<addNotNullConstraint columnDataType="boolean" columnName="with_limit_violations" tableName="shortcircuit_parameters" validate="true"/>
<addNotNullConstraint columnDataType="boolean" columnName="with_loads" tableName="shortcircuit_parameters" validate="true"/>
<addNotNullConstraint columnDataType="boolean" columnName="with_neutral_position" tableName="shortcircuit_parameters" validate="true"/>
<addNotNullConstraint columnDataType="boolean" columnName="with_shunt_compensators" tableName="shortcircuit_parameters" validate="true"/>
<addNotNullConstraint columnDataType="boolean" columnName="with_voltage_result" tableName="shortcircuit_parameters" validate="true"/>
<addNotNullConstraint columnDataType="boolean" columnName="with_vsc_converter_stations" tableName="shortcircuit_parameters" validate="true"/>
</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 @@ -38,3 +38,6 @@ databaseChangeLog:
- include:
file: changesets/changelog_20240515T001122Z.xml
relativeToChangelogFile: true
- include:
file: changesets/changelog_20240624T072900Z.xml
relativeToChangelogFile: true