Annotation Interface Migrate


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Migrate
A migration of a storage record, as TableDefinition.migrate(int, Function) adds one: turns a row stored with schema version from() into the record. Declared in the record itself, as a static method with one Row parameter that returns the record; it may be private. A record has at most one migration per version, whether from this annotation or from TableDefinition.migrate(int, Function). See Schema.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    The stored schema version this method migrates from; at least 1.
  • Element Details

    • from

      int from
      The stored schema version this method migrates from; at least 1.