From 58b5d65c8b6a62a356b21d35f89bada6ce1bc228 Mon Sep 17 00:00:00 2001 From: Mathieu DARTIGUES Date: Mon, 10 Aug 2020 15:11:19 +0200 Subject: [PATCH] Add recursive option for seeds (#284) Related to https://github.com/knex/knex/pull/3974 --- sections/seeds.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sections/seeds.js b/sections/seeds.js index bb311f8c..195a2ab8 100644 --- a/sections/seeds.js +++ b/sections/seeds.js @@ -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`)", ] }, {