mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 00:52: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:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1 @@
 | 
			
		||||
ALTER TABLE targets ALTER hostid TYPE BIGINT;
 | 
			
		||||
@@ -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.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user