From 6a4ad1d72d76d30b3d791160475d1f6d71602067 Mon Sep 17 00:00:00 2001 From: Jan Dolezel Date: Fri, 20 Jul 2018 08:34:09 +0200 Subject: [PATCH] Ignoring dotfiles by default --- bin/node-pg-migrate | 2 +- docs/api.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/node-pg-migrate b/bin/node-pg-migrate index 46bc5364..10811017 100755 --- a/bin/node-pg-migrate +++ b/bin/node-pg-migrate @@ -105,7 +105,7 @@ const { argv } = yargs }) .option(ignorePatternArg, { - default: "", + default: "\\..*", describe: "Regex pattern for file names to ignore", type: "string" }) diff --git a/docs/api.md b/docs/api.md index 7a567ee3..7d6c0004 100644 --- a/docs/api.md +++ b/docs/api.md @@ -12,7 +12,7 @@ which takes options argument with following structure (similar to [command line - `direction` _[enum]_ - `up` or `down` - `count` _[number]_ - Number of migration to run - `timestamp` _[boolean]_ - Treats `count` as timestamp -- `ignorePattern` _[string]_ - Regex pattern for file names to ignore +- `ignorePattern` _[string]_ - Regex pattern for file names to ignore (ignores files starting with `.` by default) - `file` _[string]_ - Run only migration with this name - `singleTransaction` _[boolean]_ - Combines all pending migrations into a single transaction so that if any migration fails, all will be rolled back (defaults to `true`) - `createSchema` _[boolean]_ - Creates the configured schema if it doesn't exist