lino_welfare.migrate

This is a real-world example of how the application developer can provide automatic data migrations.

This module is used because a Lino Welfare site has migration_class set to "lino_welfare.migrate.Migrator".

Functions

noop(*args)

Classes

Migrator(site, loader)

The standard migrator for Lino Welfare.

class lino_welfare.migrate.Migrator(site, loader)

Bases: Migrator

The standard migrator for Lino Welfare.

migrate_from_1_1_22(globals_dict)
  • contenttypes.HelpText renamed to gfks.HelpText

  • Fields Partner.bic and Partner.iban no longer exist. Check whether sepa.Account exists.

migrate_from_1_1_24(globals_dict)
  • ignore accounting, finan, vatless and sepa

  • migrate Client.is_seeking to Client.seeking_since

  • separate ledger accounts from debts accounts

migrate_from_1_1_25(globals_dict)
  • rename fields cal.EventType.fse_field to esf_field andpcsw.Client.has_fse to has_esf, ignore fse.client_summary

  • rename PaymentInstructionsByJournal to DisbursementOrdersByJournal

  • remove all ledger vouchers

  • remove all checkdata messages because checker names have changed (please run yourself checkdata after migration)

migrate_from_1_1_26(globals_dict)
  • move 5 models from pcsw to coaching

  • rename courses to xcourses

  • new name and plugin for CivilStates and ResidenceTypes