From d9cc3736ec0a7d58f3a3ecdaa51aea1c3557c34f Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Fri, 15 Nov 2024 14:03:07 +0100 Subject: [PATCH] schema: Fix broken upgrade script `1.3.0` PR #792 mistakenly added a `NOT NULL` clause to a nullable columns. This PR corrects that by dropping that clause and adding a `DEFAULT NULL` clause, making it consistent the actual schema file. --- schema/mysql/upgrades/1.3.0.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schema/mysql/upgrades/1.3.0.sql b/schema/mysql/upgrades/1.3.0.sql index 047903807..f6b3cae0f 100644 --- a/schema/mysql/upgrades/1.3.0.sql +++ b/schema/mysql/upgrades/1.3.0.sql @@ -8,11 +8,11 @@ ALTER TABLE notification MODIFY COLUMN properties_checksum binary(20) NOT NULL C ALTER TABLE timeperiod_range MODIFY COLUMN range_value text NOT NULL; ALTER TABLE checkcommand_argument MODIFY COLUMN argument_key varchar(255) NOT NULL; -ALTER TABLE checkcommand_argument MODIFY COLUMN argument_key_override varchar(255) NOT NULL; +ALTER TABLE checkcommand_argument MODIFY COLUMN argument_key_override varchar(255) DEFAULT NULL; ALTER TABLE eventcommand_argument MODIFY COLUMN argument_key varchar(255) NOT NULL; -ALTER TABLE eventcommand_argument MODIFY COLUMN argument_key_override varchar(255) NOT NULL; +ALTER TABLE eventcommand_argument MODIFY COLUMN argument_key_override varchar(255) DEFAULT NULL; ALTER TABLE notificationcommand_argument MODIFY COLUMN argument_key varchar(255) NOT NULL; -ALTER TABLE notificationcommand_argument MODIFY COLUMN argument_key_override varchar(255) NOT NULL; +ALTER TABLE notificationcommand_argument MODIFY COLUMN argument_key_override varchar(255) DEFAULT NULL; ALTER TABLE checkcommand_envvar MODIFY COLUMN envvar_key varchar(255) NOT NULL; ALTER TABLE eventcommand_envvar MODIFY COLUMN envvar_key varchar(255) NOT NULL;