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