Skip to content

Commit b93036e

Browse files
authored
Merge pull request #43 from juandm/docs-change-migrations-table-name
change migrations table name in .db-migraterc config file
2 parents 2d41224 + a3d12c0 commit b93036e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/Getting Started/configuration.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,19 @@ You can take a view over [here](https://github.com/dominictarr/rc#standards)
108108
where to save those configs.
109109

110110
Most prominent locations are, the root directory where you currently execute
111-
db-migrate and your `HOME` directory. The file is always named .db-migraterc,
111+
db-migrate and your `HOME` directory. The file is always named `.db-migraterc`,
112112
except for some examples you can find under the link above.
113113

114-
An example .db-migraterc config file could look like this:
114+
An example `.db-migraterc` config file could look like this:
115115

116116
```json
117117
{
118118
"sql-file": true,
119-
"configFile": "path/to/config/database.json"
119+
"configFile": "path/to/config/database.json",
120+
"table": "new_migration_table_name"
120121
}
121122
```
123+
Use `table` property in `.db-migraterc` config file to change the default name of migrations table.
122124

123125
This would set activate the sql mode unless you would deactivate it in your
124126
database.json again, which always has the highest priority.

0 commit comments

Comments
 (0)