Skip to content

Commit

Permalink
Update contact_telecoms column name (#2472)
Browse files Browse the repository at this point in the history
## 🎫 Ticket

No ticket.

## 🛠 Changes

Updates column name.

## ℹ️ Context

Before upgrading to Java 17, we need to update this column name, as
"value" is a protected term.

## 🧪 Validation

Tests passing, including smoke.
  • Loading branch information
ashley-weaver authored Feb 21, 2025
1 parent d758e6a commit dc2ea28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dpc-attribution/src/main/resources/migrations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -438,4 +438,11 @@
<changeSet id="increment-attributions_id_seq" author="MEsposito">
<alterSequence sequenceName="attributions_id_seq" incrementBy="100"></alterSequence>
</changeSet>

<!-- "value" is protected in jdk 17 -->
<changeSet id="update-value-column-name" author="ashley-weaver">
<renameColumn tableName="CONTACT_TELECOMS"
oldColumnName="value"
newColumnName="contact_value"/>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class ContactPointEntity implements Serializable {
private ContactPoint.ContactPointUse use;
@NoHtml
@NotEmpty
@Column(name = "contact_value", nullable = false)
private String value;
private Integer rank;

Expand Down

0 comments on commit dc2ea28

Please sign in to comment.