Skip to main content

Type Alias: MigrationTarget

MigrationTarget = "main" | "user" | "both"

Defined in: Data/Migration/MigrationTypes.ts:15

Which database a migration targets.

One ordered migration sequence covers both main.db and user_*.db, so a runner attached to one database skips the files aimed at the other. 'both' is for migrations that apply to either (e.g. recording the schema version).