record boot uuid on open

This can be used to match up with eg `journalctl --list-boots` for
debugging.
This commit is contained in:
Scott Lamb
2021-09-22 12:35:17 -07:00
parent f86f03cf59
commit f7aa71d2af
3 changed files with 34 additions and 11 deletions

View File

@@ -130,7 +130,7 @@ fn copy_streams(tx: &rusqlite::Transaction) -> Result<(), Error> {
pub fn run(_args: &super::Args, tx: &rusqlite::Transaction) -> Result<(), Error> {
tx.execute_batch(
r#"
alter table open add boot_uuid check (length(boot_uuid) = 16);
alter table user add preferences text;
alter table camera rename to old_camera;
alter table stream rename to old_stream;