Expand description
The prod-snapshot preflights: restore the dumps of a directory and its
tenants into fresh local databases, run cli admin check-forms or
check-references on them and drop what it created.
Tenants are restored under a prefixed name and the restored directory is rewritten to point at it, so no existing database is ever reused. The check saves every transaction, which is why it only runs on these copies.
StructsΒ§
- Restored π
- The databases created so far; dropped when the run ends, however it ends.
ConstantsΒ§
- DIRECTORY_
DUMP π - DUMP_
EXTENSION π - NIL_
USER π - The CLI demands a user id the admin command does not use.
FunctionsΒ§
- check_
forms - Restores the dumps in
dirunderserverand checks the forms on them. - check_
references - Restores the dumps in
dirunderserverand lists the ambiguous and bare references of the templates and of the sources insources. - database_
url π - references_
args π - The
cli adminarguments of the reference check. - repoint π
- SQL pointing the restored directory at the restored copy of a tenant.
- run π
- run_
admin π - tenant_
copy_ πname - tenant_
names π - Tenant database names: every dump of
direxcept the directoryβs own.