sonda/migrations/postgres
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 7bdbc9e160 fix(images): limit parallel builds, no stale saves, safer files
- At most two covers are built at the same time: a page of albums asked for at once
  could decode dozens of large pictures together.
- A change to an album's files marks its record stale and moves a generation instead
  of deleting the row. A build that started before the change is not saved over it
  and starts again, so a "no cover" found too early cannot win for a day.
- A cover that was found is checked again after a week, so a picture replaced in a
  folder is noticed.
- For CD1/Disc 2 folders the picture in the folder above is used. Folder pictures
  are read one at a time, and the pixel count is computed in 64 bits.
- Stored files are synced before they get their name, an empty one counts as
  missing, and old temporary files from a crash are removed.
- Files without track or disc numbers sort the same on both databases.
- storage.data_dir defaults next to the SQLite database, so a service started from
  another folder does not need a writable working directory.
- Tests: a listener who leaves, a change during a build, the build limit, a named
  pipe, an embedded picture of a file outside the library that exists, builds that
  really overlap.
2026-11-11 21:03:26 +01:00
..
0001_init.sql feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
0002_users_listening.sql feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
0003_name_keys.sql fix(library): harden the scanner against special files, stat errors and lossy logging 2026-11-11 12:28:44 +01:00
0004_admin_refresh.sql feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
0005_libraries.sql fix(library): make the libraries upgrade and validation robust 2026-11-11 13:34:44 +01:00
0006_track_title_key.sql feat(catalog): add the read API for artists, albums and tracks 2026-11-11 13:43:38 +01:00
0007_provider_settings.sql feat(providers): provider settings in a table and a careful outbound HTTP client 2026-11-11 16:07:12 +01:00
0008_artist_similar.sql fix(discovery): concurrent writes, adopted artists and a client that leaves 2026-11-11 16:47:33 +01:00
0009_artist_tags.sql feat(discovery): artist tags from Last.fm and MusicBrainz, and ids from my files 2026-11-11 17:01:43 +01:00
0010_track_genres.sql feat(discovery): remove provider data, genres from my files, full rescans 2026-11-11 17:27:29 +01:00
0011_user_settings.sql feat(settings): my own settings, starting with Discover from my listening 2026-11-11 19:16:26 +01:00
0012_artist_feedback.sql feat(feedback): a wishlist and "not interested" 2026-11-11 20:11:18 +01:00
0013_images.sql fix(images): limit parallel builds, no stale saves, safer files 2026-11-11 21:03:26 +01:00