summaryrefslogtreecommitdiff
path: root/src/db/mod.rs
Commit message (Collapse)AuthorAge
* Return an instance of the client when opening a channel URL directly.Owen Jacobson2024-10-10
|
* Automatically delete database backups if automatic restore is successful.Owen Jacobson2024-10-10
| | | | Operational experience with the server has shown that leaving the backup in place is not helpful. The near-automatic choice is to immediately delete it, and the server won't start until it has been deleted. If the backup restore succeeded, then we know the user has a copy of their database, since the sqlite3 online backups API promises to make the target database bitwise-identical to the source database, so there's little chance the user will need a duplicate.
* Improve ergonomics of `Backup`Owen Jacobson2024-10-05
|
* Use sqlx's API, not SQL groveling, to find unwanted migrations.Owen Jacobson2024-10-05
|
* Make a backup of the `.hi` database before applying migrations.Owen Jacobson2024-10-05
This was motivated by Kit and I both independently discovering that sqlite3 will happily partially apply migrations, leaving the DB in a broken state.