From 72a508ab7128f8a68d16e5ceb2eab2e3218f73fc Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Fri, 30 Nov 2018 13:05:32 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9EUpgrade.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Upgrade.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Upgrade.md b/Upgrade.md index 9a544b0..4b80cc9 100644 --- a/Upgrade.md +++ b/Upgrade.md @@ -5,6 +5,14 @@ * Nuki Bridge WiFi Firmware 1.2.0 -> no change ##### SQL Update -` -ALTER TABLE SmartlockLog ADD COLUMN 'accountUserId' VARCHAR(24) FIRST; -` \ No newline at end of file +``` +ALTER TABLE SmartlockLog ADD COLUMN `List` VARCHAR(24) FIRST; + +ALTER TABLE SmartlockAuth ADD COLUMN `accountUserId` VARCHAR(24) FIRST; +ALTER TABLE SmartlockAuth ADD COLUMN `allowedFromDate` DATETIME NOT NULL AFTER `accountUserId`; +ALTER TABLE SmartlockAuth ADD COLUMN `allowedFromTime` SMALLINT NOT NULL AFTER `allowedFromDate`; +ALTER TABLE SmartlockAuth ADD COLUMN `allowedUntilDate` DATETIME NOT NULL AFTER `allowedFromTime`; +ALTER TABLE SmartlockAuth ADD COLUMN `allowedUntilTime` SMALLINT NOT NULL AFTER `allowedUntilDate`; +ALTER TABLE SmartlockAuth ADD COLUMN `allowedWeekDays` SMALLINT NOT NULL AFTER `allowedUntilTime`; + +``` \ No newline at end of file