View Issue Details

IDProjectCategoryView StatusLast Update
0004871MMW v4Properties/Auto-Toolspublic2008-10-05 21:14
ReporterLudek Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0 
Fixed in Version3.1 
Summary0004871: "Clear database..." does not actually clear all database
DescriptionAs reported here:
http://www.mediamonkey.com/support/staff/index.php?_m=tickets&_a=viewticket&ticketid=2338

The tables that are actually cleared are only the Songs, Artists, Albums, Medias and Playlists, but there are a lot of other tables that should be cleared like Played, Podcasts, PodcastsEpisodes, ArtistsAlbums, Geres, GenresSongs, Filters, Folders etc. etc.

TagsNo tags attached.
Fixed in build1188

Activities

Ludek

2008-10-04 12:00

developer   ~0014707

Last edited: 2008-10-04 12:05

I added many others tables that have not been actually cleared. Reminder sent to Jiri in order to review whether they all should be cleared, but i think that the current approach is quite dangerous and hard to maintain, I guess that we should delete whole database (not just tables) and create all tables again via
CreateNewMM3Database() from NewDBCreate.pas unit, am I right?

Ludek

2008-10-04 12:11

developer   ~0014708

Reminder sent to: jiri

jiri

2008-10-04 16:00

administrator   ~0014709

Most tables are linked to Songs and using DELETE trigger on Songs are also cleared (like ArtistsSongs, GenresSongs, etc.), i.e. it shouldn't be necessary to clear them on ClearDatabase() action.

As for full recreation of DB, there could be some problem, e.g. scripts can have some custom tables, etc. We would need to introduce some new mechanism for this, so let'd defer this way.

Ludek

2008-10-05 21:13

developer   ~0014713

Ok, If you think that custom tables created by some scripts should not be deleted by performing this action then yes, we should leave the current solution.

Fixed 1188.