1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 11:22:41 +01:00

commands/postgres: Upgrade the data base schema to v1.3

Upgrade the database schema to reflect the additions of directory
artifacts and the missing TargetInfo property.
This commit is contained in:
Marc Bonnici
2019-07-18 14:08:44 +01:00
parent 68e1806c07
commit e915436661
3 changed files with 16 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
--!VERSION!1.2!ENDVERSION!
--!VERSION!1.3!ENDVERSION!
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS "lo";
@@ -96,6 +96,7 @@ CREATE TABLE Targets (
android_id text,
_pod_version int,
_pod_serialization_version int,
system_id text,
PRIMARY KEY (oid)
);
@@ -164,6 +165,7 @@ CREATE TABLE Artifacts (
kind text,
_pod_version int,
_pod_serialization_version int,
is_dir boolean,
PRIMARY KEY (oid)
);

View File

@@ -0,0 +1,3 @@
ALTER TABLE targets ADD COLUMN system_id text;
ALTER TABLE artifacts ADD COLUMN is_dir boolean;