View Single Post
Old 04-08-2010, 11:39 AM   #23
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,127
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by chaley View Post
It is. However, as you suspected, it isn't the end of the story. There is code in library.database and library.database2 that upgrades the database to the current version. When initializing, calibre creates a V1 database (the sql you were looking at), then upgrades it.

It is worth noting that metadata is a view, so is never ALTERed. It is simply recreated as needed.
Make sense, the upgrade method code can work correctly from almost any version to the current version this way, including an initial install. Elegant.
theducks is offline   Reply With Quote