From 0259fecc0f307435d11f6418b19b9e9e4f82b51e Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 22 Nov 2017 19:15:54 +0100 Subject: [PATCH] Bugfix 2 in place for Db0059 --- Database/Schemata/upgrade-0059.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Database/Schemata/upgrade-0059.sql b/Database/Schemata/upgrade-0059.sql index fd381dd4..6c06653e 100644 --- a/Database/Schemata/upgrade-0059.sql +++ b/Database/Schemata/upgrade-0059.sql @@ -9,7 +9,7 @@ `Active` TINYINT NOT NULL DEFAULT 0, `StartedDateTime` DATETIME NOT NULL DEFAULT '1800-01-01', `ClosedDateTime` DATETIME NOT NULL DEFAULT '1800-01-01', - `ExceptionText` TEXT NOT NULL DEFAULT '', + `ExceptionText` TEXT NOT NULL, PRIMARY KEY (`BackendServiceOrderId`), INDEX `Ix_Created` (`CreatedDateTime` ASC), INDEX `Ix_Organization` (`OrganizationId` ASC), @@ -85,12 +85,13 @@ BEGIN END IF; INSERT INTO BackendServiceOrders - (CreatedDateTime, OrganizationId, PersonId, BackendServiceClassId, OrderXml) + (CreatedDateTime, OrganizationId, PersonId, BackendServiceClassId, OrderXml, ExceptionText) VALUES - (dateTime, organizationId, personId, backendServiceClassId, orderXml); + (dateTime, organizationId, personId, backendServiceClassId, orderXml, ''); SELECT LAST_INSERT_ID() AS Identity; +END #