1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

output_processor/postgres: Fix out of range for hostid

Change the field type of `hostid` as part of `TargetInfo` from `Int` to
Bigint to prevent some ids from exceeding the maximum value.
This commit is contained in:
Marc Bonnici 2019-10-23 14:14:12 +01:00 committed by setrofim
parent 7ebbb05934
commit e9839d52c4
3 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
--!VERSION!1.4!ENDVERSION!
--!VERSION!1.5!ENDVERSION!
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS "lo";
@ -82,7 +82,7 @@ CREATE TABLE Targets (
cpus text[],
os text,
os_version jsonb,
hostid int,
hostid bigint,
hostname text,
abi text,
is_rooted boolean,

View File

@ -0,0 +1 @@
ALTER TABLE targets ALTER hostid TYPE BIGINT;

View File

@ -17,3 +17,8 @@
## 1.3
- Add missing "system_id" field from TargetInfo.
- Enable support for uploading Artifact that represent directories.
## 1.4
- Add "modules" field to TargetInfo to list the modules loaded by the target
during the run.
## 1.5
- Change the type of the "hostid" in TargetInfo from Int to Bigint.