Deluan
3650a7ba0a
Replace panics with log.Fatals
2026-01-02 20:36:58 +00:00
Deluan
47068d2dea
Optimize SQLite3 access. Mainly separate read access from write access.
...
Based on tips from https://archive.is/Xfjh6#selection-257.0-278.0
2026-01-02 20:36:58 +00:00
Guilherme Souza
c9a39d9986
Deterministic pagination in random albums sort ( #1841 )
...
* Deterministic pagination in random albums sort
* Reseed on first random page
* Add unit tests
* Use rand in Subsonic API
* Use different seeds per user on SEEDEDRAND() SQLite3 function
* Small refactor
* Fix id mismatch
* Add seeded random to media_file (subsonic endpoint `getRandomSongs`)
* Refactor
* Remove unneeded import
---------
Co-authored-by: Deluan <deluan@navidrome.org>
2026-01-02 20:36:58 +00:00
Deluan
5be6dfc54b
Clean up runNavidrome function
2026-01-02 20:36:55 +00:00
Deluan
b20e3ae337
Fix migration package name mismatch
2026-01-02 20:36:54 +00:00
Deluan
3897f424d3
Add a "upgrading schema" log message to the DB initialization when there are pending migrations.
2026-01-02 20:32:59 +00:00
Deluan
55c1d95376
Enable SQL migrations
2026-01-02 20:25:44 +00:00
Deluan
145bed52c5
Upgrade goose
2026-01-02 20:25:44 +00:00
Deluan
e0bfb22007
Rename log.LevelCritical to log.LevelFatal
2026-01-02 20:20:16 +00:00
Deluan
34bd983ef5
Shutdown gracefully, close DB connection
2026-01-02 20:16:00 +00:00
Deluan
4bfceb3710
Simplify Singleton usage by leveraging Go 1.18's generics
2026-01-02 20:14:22 +00:00
Deluan
6678a4185a
Inject DB into DataStore, instead of hardcode the dependency
2026-01-02 20:06:11 +00:00
Deluan
4fd29b15ff
Suppress logs of successful DB migrations applied when running for the first time
2026-01-02 20:05:05 +00:00
Deluan
afa25fd212
Integrate goose log with our own log system
2026-01-02 19:31:09 +00:00
Deluan
10cf2372f8
Move project to Navidrome GitHub organization
2026-01-02 19:20:16 +00:00
Deluan
180f1354fc
Make package name compatible with version installed by make setup
2020-10-03 20:13:47 -04:00
Deluan
45e708f591
Loosen up constraints for email. Fixes #362
2020-08-19 12:22:41 -04:00
Deluan
21b9f51b71
Rename migrations package, to match goose generated migration files
2020-08-01 16:49:01 -04:00
Deluan
94d88395e7
Add referential integrity to player and playlist tables
2020-06-10 18:07:10 -04:00
Deluan
faa2a978c0
refactor: use only one DB instance for the whole application
2020-02-28 15:06:31 -05:00
Deluan
029290f304
fix: set default play_count to 0
...
IncPlayCount was not incrementing when the annotation already existed with play_count = null
2020-02-08 22:55:05 -05:00
Deluan
7e65bb8f20
refactor: better integration between db and persistence packages
...
Will address support for different DBs in the future (+1 squashed commit)
Squashed commits:
[a014757] refactor: better integration between `db` and `persistence` packages
2020-02-01 17:23:03 -05:00
Deluan
71c1844bca
refactor: new persistence, more SQL, less ORM
2020-02-01 17:23:03 -05:00