backend.globaleaks.db.migration

Module Contents

Functions

get_right_model(migration_mapping, model_name, version) Utility function to retrieve the model corresponding to a specific model name in a specific database version
perform_data_update(db_file) Update the database including up-to-date application data
perform_migration(version) Utility function for performing a database migration
backend.globaleaks.db.migration.migration_mapping[source]
backend.globaleaks.db.migration.get_right_model(migration_mapping, model_name, version)[source]

Utility function to retrieve the model corresponding to a specific model name in a specific database version :param migration_mapping: The model mappung table :param model_name: The model name :param version: The database version :return: The model corresponding to a specific model name in a specific database version

backend.globaleaks.db.migration.perform_data_update(db_file)[source]

Update the database including up-to-date application data :param db_file: The database file path

backend.globaleaks.db.migration.perform_migration(version)[source]

Utility function for performing a database migration :param version: The current version of the database to update

backend.globaleaks.db.migration.mp[source]
backend.globaleaks.db.migration.Bases[source]
backend.globaleaks.db.migration.x[source]
backend.globaleaks.db.migration.migration_mapping[source]