mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-27 14:43:19 -05:00
small improvements to schema upgrade instructions
This commit is contained in:
parent
0f4c554ec5
commit
e1cb5f4204
@ -23,7 +23,7 @@ read-only mode prior to deleting the old database.
|
|||||||
|
|
||||||
### Procedure
|
### Procedure
|
||||||
|
|
||||||
First ensure there is sufficient space available for three copies of the
|
First ensure there is sufficient space available for four copies of the
|
||||||
SQLite database:
|
SQLite database:
|
||||||
|
|
||||||
# the primary copy, which will be upgraded
|
# the primary copy, which will be upgraded
|
||||||
@ -31,10 +31,11 @@ SQLite database:
|
|||||||
discover a problem while running the new software against the upgraded
|
discover a problem while running the new software against the upgraded
|
||||||
database in read-only mode. If disk space is tight, you can save this
|
database in read-only mode. If disk space is tight, you can save this
|
||||||
to a different filesystem than the primary copy.
|
to a different filesystem than the primary copy.
|
||||||
# an internal copy made and destroyed by Moonfire NVR and SQLite during the
|
# internal copies made and destroyed by Moonfire NVR and SQLite during the
|
||||||
upgrade:
|
upgrade:
|
||||||
* a write-ahead log or rollback journal during earlier stages
|
* during earlier steps, possibly duplicate copies of tables, which
|
||||||
* a complete database copy during the final vacuum step
|
may occupy space both in the main database and the journal
|
||||||
|
* during the final vacuum step, a complete database copy
|
||||||
If disk space is tight, and you are _very careful_, you can skip these
|
If disk space is tight, and you are _very careful_, you can skip these
|
||||||
copies with the `--preset-journal=off --no-vacuum` arguments to
|
copies with the `--preset-journal=off --no-vacuum` arguments to
|
||||||
the updater. If you aren't confident in your ability to do this, *don't
|
the updater. If you aren't confident in your ability to do this, *don't
|
||||||
|
@ -1144,8 +1144,7 @@ impl Database {
|
|||||||
\
|
\
|
||||||
If you are starting from an \
|
If you are starting from an \
|
||||||
empty database, see README.md to complete the \
|
empty database, see README.md to complete the \
|
||||||
installation. If you are starting from
|
installation. If you are starting from a database \
|
||||||
complete the schema. If you are starting from a database \
|
|
||||||
that predates schema versioning, see guide/schema.md."
|
that predates schema versioning, see guide/schema.md."
|
||||||
.to_owned()));
|
.to_owned()));
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user