Skip to content

Commit e139e2e

Browse files
authored
Fix 255 String Limit on Non-Hana Databases (#156)
On HANA, the default String Limit is 5000, but all other databases (including Postgres), it's set to 255, making tracking changes quite useless. This patch updates all limits. manually to 5k
1 parent 34c26df commit e139e2e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

index.cds

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ view ChangeView as
3737
* Top-level changes entity, e.g. UPDATE Incident by, at, ...
3838
*/
3939
entity ChangeLog : managed, cuid {
40-
serviceEntity : String @title: '{i18n>ChangeLog.serviceEntity}'; // definition name of target entity (on service level) - e.g. ProcessorsService.Incidents
41-
entity : String @title: '{i18n>ChangeLog.entity}'; // definition name of target entity (on db level) - e.g. sap.capire.incidents.Incidents
40+
serviceEntity : String(5000) @title: '{i18n>ChangeLog.serviceEntity}'; // definition name of target entity (on service level) - e.g. ProcessorsService.Incidents
41+
entity : String(5000) @title: '{i18n>ChangeLog.entity}'; // definition name of target entity (on db level) - e.g. sap.capire.incidents.Incidents
4242
entityKey : UUID @title: '{i18n>ChangeLog.entityKey}'; // primary key of target entity, e.g. Incidents.ID
4343
createdAt : managed:createdAt;
4444
createdBy : managed:createdBy;
@@ -52,20 +52,20 @@ entity ChangeLog : managed, cuid {
5252
entity Changes {
5353

5454
key ID : UUID @UI.Hidden;
55-
keys : String @title: '{i18n>Changes.keys}';
56-
attribute : String @title: '{i18n>Changes.attribute}';
57-
valueChangedFrom : String @title: '{i18n>Changes.valueChangedFrom}' @UI.MultiLineText;
58-
valueChangedTo : String @title: '{i18n>Changes.valueChangedTo}' @UI.MultiLineText;
55+
keys : String(5000) @title: '{i18n>Changes.keys}';
56+
attribute : String(5000) @title: '{i18n>Changes.attribute}';
57+
valueChangedFrom : String(5000) @title: '{i18n>Changes.valueChangedFrom}' @UI.MultiLineText;
58+
valueChangedTo : String(5000) @title: '{i18n>Changes.valueChangedTo}' @UI.MultiLineText;
5959

6060
// Business meaningful object id
61-
entityID : String @title: '{i18n>Changes.entityID}';
62-
entity : String @title: '{i18n>Changes.entity}'; // similar to ChangeLog.entity, but could be nested entity in a composition tree
63-
serviceEntity : String @title: '{i18n>Changes.serviceEntity}'; // similar to ChangeLog.serviceEntity, but could be nested entity in a composition tree
61+
entityID : String(5000) @title: '{i18n>Changes.entityID}';
62+
entity : String(5000) @title: '{i18n>Changes.entity}'; // similar to ChangeLog.entity, but could be nested entity in a composition tree
63+
serviceEntity : String(5000) @title: '{i18n>Changes.serviceEntity}'; // similar to ChangeLog.serviceEntity, but could be nested entity in a composition tree
6464

6565
// Business meaningful parent object id
66-
parentEntityID : String @title: '{i18n>Changes.parentEntityID}';
66+
parentEntityID : String(5000) @title: '{i18n>Changes.parentEntityID}';
6767
parentKey : UUID @title: '{i18n>Changes.parentKey}';
68-
serviceEntityPath : String @title: '{i18n>Changes.serviceEntityPath}';
68+
serviceEntityPath : String(5000) @title: '{i18n>Changes.serviceEntityPath}';
6969

7070
@title: '{i18n>Changes.modification}'
7171
modification : String enum {
@@ -74,7 +74,7 @@ entity Changes {
7474
delete = 'Delete';
7575
};
7676

77-
valueDataType : String @title: '{i18n>Changes.valueDataType}';
77+
valueDataType : String(5000) @title: '{i18n>Changes.valueDataType}';
7878
changeLog : Association to ChangeLog @title: '{i18n>ChangeLog.ID}' @UI.Hidden;
7979
}
8080

0 commit comments

Comments
 (0)