prozorro_sale.auction.migration module

prozorro_sale.auction.migration._migrate(data: dict, version_to_apply: int = 3) dict[source]

Function for migrating data

Parameters:
  • data (dict) – raw data

  • version_to_apply (int) – version that needs to be applied

Returns:

dict with migrated data

prozorro_sale.auction.migration.get_m_files() dict[source]

Function for getting migration files

Returns:

‘045_migration’}

Return type:

dict, i.e. {45

prozorro_sale.auction.migration.get_migrations(version_start: int, version_stop: int) list[source]

Function for getting migrations that need to be applied

Parameters:
  • version_start (int) – lower range

  • version_stop (int) – upper range

Returns:

list of migration modules