Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 81c975a

Browse files
author
mgrauer
committed
Fixed update of tracker dbs to 1.2.2
1 parent 5851227 commit 81c975a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

modules/tracker/database/mysql/1.2.2.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ CREATE TABLE IF NOT EXISTS `tracker_trend` (
7272
`config_item_id` bigint(20),
7373
`test_dataset_id` bigint(20),
7474
`truth_dataset_id` bigint(20),
75+
`key_metric` tinyint(4) NOT NULL DEFAULT '0',
7576
PRIMARY KEY (`trend_id`),
7677
KEY (`producer_id`)
7778
) DEFAULT CHARSET=utf8;

modules/tracker/database/pgsql/1.2.2.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ CREATE TABLE IF NOT EXISTS "tracker_trend" (
7575
"unit" character varying(255) NOT NULL,
7676
"config_item_id" bigint,
7777
"test_dataset_id" bigint,
78-
"truth_dataset_id" bigint
78+
"truth_dataset_id" bigint,
79+
"key_metric" smallint NOT NULL DEFAULT 0::smallint
7980
);
8081

8182
CREATE INDEX "tracker_trend_producer_id" ON "tracker_trend" ("producer_id");

modules/tracker/database/sqlite/1.2.2.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.
22

3-
-- SQLite database for the tracker module, version 1.2.0
3+
-- SQLite database for the tracker module, version 1.2.2
44

55
CREATE TABLE IF NOT EXISTS "tracker_producer" (
66
"producer_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
@@ -74,7 +74,8 @@ CREATE TABLE IF NOT EXISTS "tracker_trend" (
7474
"unit" TEXT NOT NULL,
7575
"config_item_id" INTEGER,
7676
"test_dataset_id" INTEGER,
77-
"truth_dataset_id" INTEGER
77+
"truth_dataset_id" INTEGER,
78+
"key_metric" INTEGER NOT NULL DEFAULT 0
7879
);
7980

8081
CREATE INDEX IF NOT EXISTS "tracker_trend_producer_id_idx" ON "tracker_trend" ("producer_id");

0 commit comments

Comments
 (0)