MigrationSequence
Table of contents
Public interface
Signature
interface MigrationSequence {}
Source
packages/store/src/lib/migrate.ts
Properties
retroactive
Public propertysignature
retroactive should be true if the migrations should be applied to snapshots that were created before this migration sequence was added to the schema.
In general:
- retroactive should be true when app developers create their own new migration sequences.
- retroactive should be false when library developers ship a migration sequence. When you install a library for the first time, any migrations that were added in the library before that point should generally not be applied to your existing data.
Signature
retroactive: boolean
sequence
Public propertysignature
Signature
sequence: Migration[]
References
sequenceId
Public propertysignature
Signature
sequenceId: string