Class e.p.d.d.DatabaseUpdaterNG(object):

Part of elisa.plugins.database.database_updater View In Hierarchy

Known subclasses: elisa.plugins.database.tests.test_database_updater.DbUpNGDummy

From release 0.5.19 we store the current database version inside the database and go step by step (aka. release by release) up to the version we currently need. That is done in this class. For everything before 0.5.19, the DatabaseUpdaterClassic will be used
Line # Kind Name Docs
330 Method __init__ Undocumented
333 Method get_user_version Undocumented
336 Method get_schema_version Undocumented
375 Method update_from Undocumented
385 Method create_schema Undocumented
397 Method do_conditional_updates Undocumented
433 Method update_db Undocumented
339 Method _update_done Undocumented
343 Method _get_pragma_version Undocumented
355 Method _schema_version_check Undocumented
371 Method _run_classic Undocumented
464 Method _upgrade_to_2 This method updates the database user version to number two. The new
477 Method _upgrade_to_3 Upgrades the database to version 3. The new tables are movies,
554 Method _upgrade_to_4 Upgrades the database to version 4. TV Episodes poster uris
583 Method _upgrade_to_5 Upgrade the database to version 5.
def __init__(self, store):
Undocumented
def get_user_version(self):
Undocumented
def get_schema_version(self):
Undocumented
def _update_done(self, res):
Undocumented
def _get_pragma_version(self, lookup):
Undocumented
def _schema_version_check(self, version):
Undocumented
def _run_classic(self):
Undocumented
def update_from(self, version):
Undocumented
def create_schema(self):
Undocumented
def do_conditional_updates(self, old_result=None):
Undocumented
def update_db(self):
Undocumented
def _upgrade_to_2(self):
This method updates the database user version to number two. The new feature is "keeping track about conditional updates". This allows us to fix problems we have found in the database and keep trac about the fact that we did that fix so that we don't do it again.
def _upgrade_to_3(self):
Upgrades the database to version 3. The new tables are movies, tvseasons and tvepisodes.
def _upgrade_to_4(self):
Upgrades the database to version 4. TV Episodes poster uris are changed from:

http://images.thetvdb.com/banners/episodes/79349-310842.jpg

to:

http://images.thetvdb.com/banners/episodes/79349/310842.jpg

def _upgrade_to_5(self):
Upgrade the database to version 5.

Remove all the deletion triggers, replaced by explicit deletion code in the database parser. This is because using triggers in the DB, Storm was not aware of objects being deleted and was therefore quite confused. See https://bugs.launchpad.net/elisa/+bug/322700.

API Documentation for Elisa Media Center, generated by pydoctor at 2009-04-27 17:55:12.