Skip to content

Commit

Permalink
Fix FileMigrationProvider example (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
gimenete authored Jan 14, 2023
1 parent 73bb4e9 commit c6598a9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/migration/migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ export interface Migration {
* other way.
*
* ```ts
* import { promises as fs } from 'fs'
* import path from 'path'
*
* const migrator = new Migrator({
* db,
* provider: new FileMigrationProvider(
* provider: new FileMigrationProvider({
* fs,
* path,
* // Path to the folder that contains all your migrations.
* 'some/path/to/migrations'
* )
* migrationFolder: 'some/path/to/migrations'
* })
* })
* ```
*/
Expand Down

0 comments on commit c6598a9

Please sign in to comment.