Separate db update from CDatabase::Open() #1128

Merged
merged 8 commits into from Jul 11, 2012
Commits on Jul 9, 2012
  1. Revert "CDatabase: remember the databases we already updated and don'…

    Jonathan Marshall committed Jul 7, 2012
    …t check them on every connect/open"
    
    This reverts commit d78c7195cc81babdd048737b412b99a0848f4c7c.
  2. pass the db name to CDatabase::Connect rather than altering DatabaseS…

    Jonathan Marshall committed Jul 7, 2012
    …ettings::name
  3. get rid of unneeded UpdateVersion when creating a new database, and d…

    Jonathan Marshall committed Jul 7, 2012
    …rop the fallback to sqlite - it's unlikely that the sqlite db is in any way in sync with the mysql one
  4. factor out CDatabase::GetDBVersion

    Jonathan Marshall committed Jul 7, 2012
  5. factor out the Update() function in CDatabase::Open

    Jonathan Marshall committed Jul 7, 2012
  6. adds new CDatabaseManager, and allow it to access CDatabase::Update d…

    Jonathan Marshall committed Jul 7, 2012
    …irectly.
  7. Initialize the database manager on start and on change of profile, so…

    Jonathan Marshall committed Jul 7, 2012
    … that database updates are attempted only once rather than on every Open().