Skip to content

Commit 810ffe6

Browse files
committed
chore: Improve formatting in upgrade notes
1 parent b19cd9a commit 810ffe6

File tree

1 file changed

+33
-38
lines changed

1 file changed

+33
-38
lines changed

releases/2.41/README.md

+33-38
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# DHIS2 Version 41 Upgrade Notes
22

3-
43
Welcome to the upgrade notes for DHIS2 version 41.
54

65
> **It is important to be familiar with the contents of these notes *before* attempting an upgrade.**
76
>
8-
> :warning: **Please ensure you have also read the upgrade notes from the [PREVIOUS RELEASE](../2.40/README.md), if upgrading from an earlier version**
9-
7+
> :warning: **Ensure you have also read the upgrade notes from the [PREVIOUS RELEASE](../2.40/README.md) if upgrading from an earlier version**
108
119
To help you navigate the document, here's a detailed table of contents.
1210

@@ -39,7 +37,6 @@ To help you navigate the document, here's a detailed table of contents.
3937
- [Postgres Reference](#postgres-reference)
4038
- [Deprecations and Removals](#deprecations-and-removals)
4139

42-
4340
<!--
4441
1. [Functional Changes](#functional-changes)
4542
2. [Performance Enhancements](#performance-enhancements)
@@ -110,22 +107,21 @@ END;
110107
$$ LANGUAGE plpgsql STRICT;
111108

112109
select uid,
113-
valuetype,
114-
description,
115-
'update trackedentityattribute set valuetype=''TEXT'' where uid = ''' || uid || ''';' as suggested_fix_statement
110+
valuetype,
111+
description,
112+
'update trackedentityattribute set valuetype=''TEXT'' where uid = ''' || uid || ''';' as suggested_fix_statement
116113
from (select tea.uid,
117-
tea.valuetype,
118-
tea.description,
119-
teav.value,
120-
case
121-
when tea.valuetype in ('NUMBER', 'UNIT_INTERVAL', 'PERCENTAGE') then can_be_casted(teav.value, 'double precision')
122-
when tea.valuetype like '%INTEGER%' then can_be_casted(teav.value, 'integer')
123-
when tea.valuetype in ('DATE', 'DATETIME', 'AGE') then can_be_casted(teav.value, 'timestamp')
124-
end as safe_to_cast
125-
from trackedentityattribute tea
126-
join trackedentityattributevalue teav
127-
on tea.trackedentityattributeid = teav.trackedentityattributeid) as t1
128-
where safe_to_cast = false
114+
tea.valuetype,
115+
tea.description,
116+
teav.value,
117+
case
118+
when tea.valuetype in ('NUMBER', 'UNIT_INTERVAL', 'PERCENTAGE') then can_be_casted(teav.value, 'double precision')
119+
when tea.valuetype like '%INTEGER%' then can_be_casted(teav.value, 'integer')
120+
when tea.valuetype in ('DATE', 'DATETIME', 'AGE') then can_be_casted(teav.value, 'timestamp')
121+
end as safe_to_cast
122+
from trackedentityattribute tea
123+
join trackedentityattributevalue teav on tea.trackedentityattributeid = teav.trackedentityattributeid) as t1
124+
where safe_to_cast = false
129125
group by uid, valuetype, description;
130126

131127
DROP function if exists can_be_casted(s text, type text);
@@ -235,21 +231,20 @@ have been deprecated in favor of a `pager` object. Both the flat pagination fiel
235231
the nested `pager` are returned as of 2.41 if pagination is enabled. The flat fields will be removed
236232
in a future release.
237233

238-
> **Example**
239-
> ```json
240-
> {
241-
> "pager": {
242-
> "page": 3,
243-
> "pageSize": 2,
244-
> "total": 373570,
245-
> "pageCount": 186785,
246-
> },
247-
> "page": 3,
248-
> "pageSize": 2,
249-
> "total": 373570,
250-
> "pageCount": 186785,
251-
> }
252-
> ```
234+
```json
235+
{
236+
"pager": {
237+
"page": 3,
238+
"pageSize": 2,
239+
"total": 373570,
240+
"pageCount": 186785,
241+
},
242+
"page": 3,
243+
"pageSize": 2,
244+
"total": 373570,
245+
"pageCount": 186785,
246+
}
247+
```
253248

254249
The actual data previously returned in `instances` is returned in a key named after the plural of
255250
the returned entity itself. For example `/tracker/trackedEntities` returns tracked entities in key
@@ -459,10 +454,10 @@ Therefore, no downtime is expected following the migrations.
459454
You can check that the index creation hasn't changed after the migration via the transaction commit.
460455

461456
```sql
462-
SELECT pg_xact_commit_timestamp(xmin)
463-
FROM pg_class
464-
WHERE relname = 'programstageinstance_pkey';
457+
select pg_xact_commit_timestamp(xmin)
458+
from pg_class
459+
where relname = 'programstageinstance_pkey';
465460
```
466-
Notice if you want to run the query, Postgres needs to start with `-c track_commit_timestamp=on`
461+
Note that if you want to run the query, Postgres needs to start with `-c track_commit_timestamp=on`
467462

468463
## Deprecations and Removals

0 commit comments

Comments
 (0)