You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading icingadb MariaDB/MySQL from version 5 to version 6, three errors occur.
Example:
MariaDB [icingadb]> ALTER TABLE checkcommand_argument MODIFY COLUMN argument_key_override varchar(255) NOT NULL;
ERROR 1265 (01000): Data truncated for column 'argument_key_override' at row 1
The error arises because of the "NOT NULL".
When looking at the schema definition which gets installed for a fresh icingadb, for field "argument_key_override", the corresponding table definition does not state "NOT NULL", but "DEFAULT NULL" which is kind of the opposite:
CREATE TABLE checkcommand_argument (
id binary(20) NOT NULL COMMENT 'sha1(environment.id + checkcommand_id + argument_key)',
environment_id binary(20) NOT NULL COMMENT 'env.id',
checkcommand_id binary(20) NOT NULL COMMENT 'checkcommand.id',
argument_key varchar(255) NOT NULL,
properties_checksum binary(20) NOT NULL COMMENT 'sha1(all properties)',
argument_value text DEFAULT NULL,
argument_order smallint DEFAULT NULL,
description text DEFAULT NULL,
argument_key_override varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
repeat_key enum('n', 'y') NOT NULL,
required enum('n', 'y') NOT NULL,
set_if varchar(255) DEFAULT NULL,
`separator` varchar(255) DEFAULT NULL,
skip_key enum('n', 'y') NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC;
So there is an inconsistency between the upgrade and the "fresh" schema.
The same error occurs with two other statements from the upgrade SQL:
ALTER TABLE eventcommand_argument MODIFY COLUMN argument_key_override varchar(255) NOT NULL;
ALTER TABLE notificationcommand_argument MODIFY COLUMN argument_key_override varchar(255) NOT NULL
Maybe i am misinterpreting something, but i guess this might be a bug...
The text was updated successfully, but these errors were encountered:
When upgrading icingadb MariaDB/MySQL from version 5 to version 6, three errors occur.
Example:
The error arises because of the "NOT NULL".
When looking at the schema definition which gets installed for a fresh icingadb, for field "argument_key_override", the corresponding table definition does not state "NOT NULL", but "DEFAULT NULL" which is kind of the opposite:
So there is an inconsistency between the upgrade and the "fresh" schema.
The same error occurs with two other statements from the upgrade SQL:
Maybe i am misinterpreting something, but i guess this might be a bug...
The text was updated successfully, but these errors were encountered: