diff options
-rw-r--r-- | create/src/schema.tmpl | 2 | ||||
-rw-r--r-- | src/libs/zbxdbupgrade/dbupgrade_5050.c | 2 | ||||
-rw-r--r-- | ui/include/schema.inc.php | 2 |
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, |