Skip to content

Commit

Permalink
Add recursive option for seeds (#284)
Browse files Browse the repository at this point in the history
Related to knex/knex#3974
  • Loading branch information
mdartic authored Aug 10, 2020
1 parent 513c98c commit 58b5d65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sections/seeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ export default [
content: [
"`directory`: a relative path to the directory containing the seed files. Can be an array of paths (default `./seeds`)",
"`loadExtensions`: array of file extensions which knex will treat as seeds. For example, if you have typescript transpiled into javascript in the same folder, you want to execute only javascript seeds. In this case, set `loadExtensions` to `['.js']` (Notice the dot!) (default `['.co', '.coffee', '.eg', '.iced', '.js', '.litcoffee', '.ls', '.ts']`)",
"`recursive`: if true, will find seed files recursively in the directory / directories specified",
"`specific`: a specific seed file to run from the seeds directory, if its value is `undefined` it will run all the seeds (default `undefined`)",
"`sortDirsSeparately`: if true and multiple directories are specified, all migrations from a single directory will be executed before executing migrations in the next folder (default `false`)"
"`sortDirsSeparately`: if true and multiple directories are specified, all seeds from a single directory will be executed before executing seeds in the next folder (default `false`)",
]
},
{
Expand Down

0 comments on commit 58b5d65

Please sign in to comment.