Define a migration that renames a named entity.
Applying it rewrites every reference pointing at from to point at to, preserving the reference's version suffix. Idempotent: a reference that already reads correctly is not written.
from
to
const migration = Migration.defineRename({ from: 'org.example.operation.foo', to: 'org.example.operation.bar',}); Copy
const migration = Migration.defineRename({ from: 'org.example.operation.foo', to: 'org.example.operation.bar',});
O(1) at definition time.
Define a migration that renames a named entity.
Applying it rewrites every reference pointing at
fromto point atto, preserving the reference's version suffix. Idempotent: a reference that already reads correctly is not written.