From ddda01e4fa686030eb21c68e9a2210919b2c612a Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Tue, 26 Oct 2021 18:54:26 -0700 Subject: [PATCH] preparing v0.7.0 --- CHANGELOG.md | 4 ++++ README.md | 2 +- guide/install.md | 2 +- guide/schema.md | 13 +++++++++++-- server/Cargo.lock | 4 ++-- server/Cargo.toml | 2 +- server/db/Cargo.toml | 2 +- 7 files changed, 21 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f0daa7..6307eac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ changes, see Git history. Each release is tagged in Git and on the Docker repository [`scottlamb/moonfire-nvr`](https://hub.docker.com/r/scottlamb/moonfire-nvr). +## `v0.7.0` (in progress) + +* [schema version 7](guide/schema.md#version-7) + ## `v0.6.7` (2021-10-20) * trim whitespace when detecting time zone by reading `/etc/timezone`. diff --git a/README.md b/README.md index b89a502..15c39fd 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ There's no support yet for motion detection, no https/TLS support (you'll need a proxy server, as described [here](guide/secure.md)), and only a console-based (rather than web-based) configuration UI. -Moonfire NVR is currently at version 0.6.7. Until version 1.0, there will be no +Moonfire NVR is currently at version 0.7.0. Until version 1.0, there will be no compatibility guarantees: configuration and storage formats may change from version to version. There is an [upgrade procedure](guide/schema.md) but it is not for the faint of heart. diff --git a/guide/install.md b/guide/install.md index a8b7952..2c4f885 100644 --- a/guide/install.md +++ b/guide/install.md @@ -66,7 +66,7 @@ $ sudo chmod a+rx /usr/local/bin/nvr # Set your timezone here. tz="America/Los_Angeles" -# or eg "scottlamb/moonfire-nvr:v0.6.7" to specify a particular version. +# or eg "scottlamb/moonfire-nvr:v0.7.0" to specify a particular version. image_name="scottlamb/moonfire-nvr:latest" container_name="moonfire-nvr" common_docker_run_args=( diff --git a/guide/schema.md b/guide/schema.md index 572bc55..9b87a64 100644 --- a/guide/schema.md +++ b/guide/schema.md @@ -7,6 +7,7 @@ * [Version 1 to version 2 to version 3](#version-1-to-version-2-to-version-3) * [Version 3 to version 4 to version 5](#version-3-to-version-4-to-version-5) * [Version 6](#version-6) + * [Version 7](#version-7) This document has notes about the Moonfire NVR storage schema. As described in [README.md](../README.md), this consists of two kinds of state: @@ -162,7 +163,7 @@ Then use `sqlite3` to manually edit the database. The default path is `/var/lib/moonfire-nvr/db/db`; if you've specified a different `--db_dir`, use that directory with a suffix of `/db`. -``` +```console $ sudo -u moonfire-nvr sqlite3 /var/lib/moonfire-nvr/db/db sqlite3> ``` @@ -272,8 +273,16 @@ Version 6 adds over version 5: before it on that stream. This is useful for MediaSourceExtension-based web browser UIs when setting timestamps of video segments in the SourceBuffer. -* decoupled "wall time" and "media time" of recoridngs, as a step toward +* decoupled "wall time" and "media time" of recordings, as a step toward implementing audio support without giving up clock frequency adjustment. See [this comment](https://github.com/scottlamb/moonfire-nvr/issues/34#issuecomment-651548468). On upgrading to this version, sessions will be revoked. + +### Version 7 + +This version affects only the SQLite database. + +Version 7 extends many database tables with a flexible JSON configuration +object. This will allow minor configuration expansions without a full +schema upgrade. diff --git a/server/Cargo.lock b/server/Cargo.lock index 1cdd021..1fa9f42 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -1212,7 +1212,7 @@ dependencies = [ [[package]] name = "moonfire-db" -version = "0.6.7" +version = "0.7.0" dependencies = [ "base64", "blake3", @@ -1265,7 +1265,7 @@ dependencies = [ [[package]] name = "moonfire-nvr" -version = "0.6.7" +version = "0.7.0" dependencies = [ "base64", "blake3", diff --git a/server/Cargo.toml b/server/Cargo.toml index 8e3a1ad..f9ace4b 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "moonfire-nvr" -version = "0.6.7" +version = "0.7.0" authors = ["Scott Lamb "] edition = "2018" license-file = "../LICENSE.txt" diff --git a/server/db/Cargo.toml b/server/db/Cargo.toml index b136bf1..a00b887 100644 --- a/server/db/Cargo.toml +++ b/server/db/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "moonfire-db" -version = "0.6.7" +version = "0.7.0" authors = ["Scott Lamb "] readme = "../README.md" edition = "2018"