Skip to content

Commit 1c9941a

Browse files
committed
igloo 6.14.0 changelog
1 parent 265a56e commit 1c9941a

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

source/usage/database/historylog-optimization.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@ and an interface is added to allow code factorization.
6161
`IHistoryEntityReference`)
6262

6363
In you project, you must:
64-
* Replace `valueService.create(...` by `valueService.createHistoryValue(...`
65-
or `valueService.createHistoryEventValue(...`
64+
* Replace `valueService.create(...)` by `valueService.createHistoryValue(...)`
65+
or `valueService.createHistoryEventValue(...)`
6666
* Replace `HistoryValue` by `IHistoryValue`
6767
* Rename `HistoryValueRenderer` to `IHistoryValueRenderer` (as it can render both types)
68+
* Check that `HistoryValue` is strictly used on `HistoryLog` / `HistoryDifference`
69+
(search `historyvalue` in `**/model/**/*.java`). It's normal if you have no reference
70+
(on nominal case, type is declared only in Igloo).
6871

6972
### Option 1: switch to enum type
7073

@@ -94,7 +97,14 @@ ALTER statements. They need to split fully-qualified entity name to keep only th
9497
* Add your own field to the following update script:
9598

9699
```sql
97-
-- Work in progress...
100+
alter table historylog
101+
alter column mainobject_reference_type type historylog_reference_type using substring(mainobject_reference_type from '[^.]+$')::historylog_reference_type,
102+
alter column subject_reference_type type historylog_reference_type using substring(subject_reference_type from '[^.]+$')::historylog_reference_type,
103+
alter column object1_reference_type type historylog_reference_type using substring(object1_reference_type from '[^.]+$')::historylog_reference_type,
104+
alter column object2_reference_type type historylog_reference_type using substring(object2_reference_type from '[^.]+$')::historylog_reference_type,
105+
alter column object3_reference_type type historylog_reference_type using substring(object3_reference_type from '[^.]+$')::historylog_reference_type,
106+
alter column object4_reference_type type historylog_reference_type using substring(object4_reference_type from '[^.]+$')::historylog_reference_type
107+
;
98108
```
99109

100110

0 commit comments

Comments
 (0)