mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-12 21:35:40 +08:00
Add column unlock_token (#19)
Store unlock_token on TokenUpdate message.
(cherry picked from commit bcb16fc)
This commit is contained in:
@@ -199,7 +199,8 @@ func (store pgStore) Save(msg string, dev *Device) error {
|
||||
awaiting_configuration=:awaiting_configuration,
|
||||
apple_push_magic=:apple_push_magic,
|
||||
apple_mdm_token=:apple_mdm_token,
|
||||
mdm_enrolled=:mdm_enrolled
|
||||
mdm_enrolled=:mdm_enrolled,
|
||||
unlock_token=:unlock_token
|
||||
WHERE device_uuid=:device_uuid`
|
||||
case "checkout":
|
||||
stmt = `UPDATE devices SET
|
||||
|
||||
4
migrations/201607100001_devices_unlock_token_down.sql
Normal file
4
migrations/201607100001_devices_unlock_token_down.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE
|
||||
devices
|
||||
DROP COLUMN unlock_token;
|
||||
|
||||
3
migrations/201607100001_devices_unlock_token_up.sql
Normal file
3
migrations/201607100001_devices_unlock_token_up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE
|
||||
devices
|
||||
ADD COLUMN unlock_token BYTEA;
|
||||
Reference in New Issue
Block a user