Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrejs Verza <andrejs.verza@zabbix.com>2021-12-27 20:30:06 +0300
committerAndrejs Verza <andrejs.verza@zabbix.com>2021-12-27 20:30:06 +0300
commit5a952af335f3cf958d16beecc6506851244d0cb1 (patch)
treeb802e8617ae979e2948c56dcff194fc447b9db2d
parent2af1ca802d6daf7d02b80ebc2b404d444c412059 (diff)
..F.....S. [ZBXNEXT-6999] fixed the default status of the SLA in the DB schema
-rw-r--r--create/src/schema.tmpl2
-rw-r--r--src/libs/zbxdbupgrade/dbupgrade_5050.c2
-rw-r--r--ui/include/schema.inc.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl
index e541160acd0..5d01a8e5e10 100644
--- a/create/src/schema.tmpl
+++ b/create/src/schema.tmpl
@@ -1905,7 +1905,7 @@ FIELD |period |t_integer |'0' |NOT NULL |0
FIELD |slo |t_double |'99.9' |NOT NULL |0
FIELD |effective_date |t_integer |'0' |NOT NULL |0
FIELD |timezone |t_varchar(50) |'UTC' |NOT NULL |ZBX_NODATA
-FIELD |status |t_integer |'0' |NOT NULL |0
+FIELD |status |t_integer |'1' |NOT NULL |0
FIELD |description |t_shorttext |'' |NOT NULL |0
UNIQUE |1 |name
diff --git a/src/libs/zbxdbupgrade/dbupgrade_5050.c b/src/libs/zbxdbupgrade/dbupgrade_5050.c
index d94ef094605..a97dc0fd6ce 100644
--- a/src/libs/zbxdbupgrade/dbupgrade_5050.c
+++ b/src/libs/zbxdbupgrade/dbupgrade_5050.c
@@ -1214,7 +1214,7 @@ static int DBpatch_5050114(void)
{"slo", "99.9", NULL, NULL, 0, ZBX_TYPE_FLOAT, ZBX_NOTNULL, 0},
{"effective_date", "0", NULL, NULL, 0, ZBX_TYPE_INT, ZBX_NOTNULL, 0},
{"timezone", "UTC", NULL, NULL, 50, ZBX_TYPE_CHAR, ZBX_NOTNULL, 0},
- {"status", "0", NULL, NULL, 0, ZBX_TYPE_INT, ZBX_NOTNULL, 0},
+ {"status", "1", NULL, NULL, 0, ZBX_TYPE_INT, ZBX_NOTNULL, 0},
{"description", "", NULL, NULL, 0, ZBX_TYPE_SHORTTEXT, ZBX_NOTNULL, 0},
{0}
},
diff --git a/ui/include/schema.inc.php b/ui/include/schema.inc.php
index 88c59f417ab..c3513302e3e 100644
--- a/ui/include/schema.inc.php
+++ b/ui/include/schema.inc.php
@@ -8785,7 +8785,7 @@ return [
'null' => false,
'type' => DB::FIELD_TYPE_INT,
'length' => 10,
- 'default' => '0'
+ 'default' => '1'
],
'description' => [
'null' => false,