emmental/emmental/db
Anna Schumaker 24675bf202 db: Save and restore the track added date when deleting a Track
I found that deleted and restorted tracks were incorrectly showing up in
the "New Tracks" playlist. I can fix this by saving the track added date
when the tracks is deleted. The only thing I can't do easily is get the
added date for tracks that have already been deleted, so I set this to
the date of the database upgrade.

Fixes: #64 ("Save the tracks.added date when deleting")
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2023-10-20 16:31:09 -04:00
..
__init__.py db: Upgrade the database version to 2 2023-10-18 11:50:29 -04:00
albums.py db: Have Playlists use the child_set as the children base model 2023-06-23 11:37:47 -04:00
artists.py db: Have Playlists use the child_set as the children base model 2023-06-23 11:37:47 -04:00
connection.py db: Give the db an executescript() function 2023-10-18 10:51:43 -04:00
decades.py db: Have Playlists use the child_set as the children base model 2023-06-23 11:37:47 -04:00
emmental.sql db: Give Libraries knowledge about their Tracks & Properties 2023-05-10 17:31:33 -04:00
genres.py db: Give Genres knowledge about their Tracks & Properties 2023-05-10 17:31:33 -04:00
idle.py db: Give the Idle Queue a way to handle high priority tasks 2023-06-28 10:09:53 -04:00
libraries.py db: Reload Playlists before deleting a Library path 2023-05-10 17:31:33 -04:00
media.py db: Have Album playlists use the new child_set 2023-06-23 11:37:47 -04:00
playlist.py db: Disable incremental filtering 2023-06-28 10:09:53 -04:00
playlists.py db: Set the Queued Tracks playlist as active when adding tracks 2023-06-06 09:22:22 -04:00
settings.py db: Give Tables an idle Queue 2023-04-12 10:44:27 -04:00
table.py db: Disable incremental filtering 2023-06-28 10:09:53 -04:00
tagger.py db: Give the Tagger a function for untagging Tracks 2023-05-10 17:31:33 -04:00
tracks.py db: Rename the Table.Filter to Table.KeySet 2023-06-19 09:55:11 -04:00
upgrade-v2.sql db: Save and restore the track added date when deleting a Track 2023-10-20 16:31:09 -04:00
years.py db: Have decade Playlists use the new child_set 2023-06-23 11:37:47 -04:00