Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

lino_voga.lib.voga.migrate

This defines the Migrator class

is a real-world example of how the application developer can provide automatic data migrations for The Python serializer.

Classes

Migrator(site, loader)

This class is used because a Lino Voga Site has ad.Site.migration_class set to "lino_voga.migrate.Migrator".

class lino_voga.lib.voga.migrate.Migrator(site, loader)

Bases: Migrator

This class is used because a Lino Voga Site has ad.Site.migration_class set to "lino_voga.migrate.Migrator".

migrate_from_0_0_1(globals_dict)
  • Renamed countries.City to countries.Place

  • removed field imode from contacts.Partner

  • renamed trading.PaymentTerm to vat.PaymentTerm

migrate_from_0_0_2(globals_dict)
  • removed field cal.Event.course

migrate_from_0_0_3(globals_dict)
  • cal.EventType : remove fields build_method and template

  • cal.Event : remove field course

  • notes.NoteType : remove field body_template

  • contacts.Partner : rename field invoicing_address to invoice_recipient

  • system.SiteConfig : remove field farest_future

  • system.TextFieldTemplate : remove field team

migrate_from_0_0_4(globals_dict)
  • removed field User.notifyme_mode