diff --git a/packages/migrator/readme.md b/packages/migrator/readme.md index 41692370..eeb9f3d9 100644 --- a/packages/migrator/readme.md +++ b/packages/migrator/readme.md @@ -45,7 +45,7 @@ This generates placeholder migration sql scripts in the directory specified by ` You can now edit the generated sql files to `create table users(name text)` for the 'up' migration and `drop table users` for the 'down' migration. -Note: `node migrate create xyz` will try to detect the type of pre-existing migrations. The extension of the file generated will be `.sql`, `.js` or `.ts` to match the last migration found in the target directory, default to `.sql` if none is found. You can override this behaviour by explicitly providing an extension, e.g. `node migrate create xyz.js`. +Note: `node migrate create xyz` will try to detect the type of pre-existing migrations. The extension of the file generated will be `.sql`, `.js` or `.ts` to match the last migration found in the target directory, defaulting to `.sql` if none is found. You can override this behaviour by explicitly providing an extension, e.g. `node migrate create xyz.js`.
JavaScript and TypeScript migrations