Skip to content

Commit

Permalink
Merge pull request #127 from dhis2/TECH-1614
Browse files Browse the repository at this point in the history
refactor: rename trackedentitycomment to note [TECH-1614]
  • Loading branch information
lucaCambi77 authored Sep 15, 2023
2 parents 76450ca + 17efb01 commit 6308378
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions releases/2.41/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ We have renamed some tables and columns following tracker's new [naming](#naming

Therefore, we align the database's names with the changes applied to `trackedEntityInstance`, `programInstance`, and `programStageInstance`.

Furthermore, we also align the `trackedentitycomment` and its related database tables to the API naming of `note`.

#### Renamed Tables

| Old Table Name | New Table Name |
Expand All @@ -127,10 +129,11 @@ Therefore, we align the database's names with the changes applied to `trackedEnt
| programinstance | enrollment |
| programstageinstance | event |
| programstageinstancefilter | eventfilter |
| programstageinstancecomments| eventcomments |
| programinstancecomments | enrollmentcomments |
| trackedentityinstanceaudit | trackedentityaudit |
| trackedentityinstancefilter | trackedentityfilter |
| trackedentitycomment | note |
| programstageinstancecomments| event_notes |
| programinstancecomments | enrollment_notes |

#### Renamed Columns

Expand Down Expand Up @@ -175,6 +178,14 @@ The following `trackedentityinstance` related columns have been renamed
| programtempowner | trackedentityinstanceid | trackedentityid |
| programownershiphistory | trackedentityinstanceid | trackedentityid |

The following `trackedentitycomment` related columns have been renamed

| Table (new names) | Column Old Name | Column New Name |
| ---------------------------------|:------------------------------:|-----------------------:|
| note | trackedentitycommentid | noteid |
| note | commenttext | notetext |
| event_comments | trackedentitycommentid | noteid |
| enrollment_comments | trackedentitycommentid | noteid |

#### Postgres Reference

Expand Down

0 comments on commit 6308378

Please sign in to comment.