You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do you think about adding a getState method for the Migrator that returns an object like this
interfaceMigrationState{// All migrations sorted by name.readonlymigrations: ReadonlyArray<NamedMigration>// Index of the last executed migration. -1 if no migrations have been executed.readonlycurrentIndex: number}interfaceNamedMigrationextendsMigration{readonlyname: string}interfaceMigration{up(db: Kysely<any>): Promise<void>down?(db: Kysely<any>): Promise<void>}
Or do you need other information about the migrations, like the execution timestamp?
We're building a UI around running these migrations and need to know which migrations have already run without directly querying the migrations table
The text was updated successfully, but these errors were encountered: