Bug 40174: Do not generate bigint

Prevent "Out of range value for column 'deliverytime'" in a later
follow-up bug reports.

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 065f00ad67)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-07-17 14:50:29 +02:00 committed by Paul Derscheid
parent 26653b2a78
commit 604ede20d9
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ const generateMockData = (type, properties) => {
}
return (value = faker.lorem.words(3));
case "integer":
return faker.number.int();
// Do not return more than int(11);
return faker.number.int(2 ** 31 - 1);
case "boolean":
return faker.datatype.boolean();
case "array":