mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-05 07:12:34 -05:00
record boot uuid on open
This can be used to match up with eg `journalctl --list-boots` for debugging.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user