Skip to content

Commit a3d12c0

Browse files
committed
docs: change migrations table name using .db-migraterc
Adding to the docs how to change migrations table name using .db-migraterc config file Signed-off-by: Juan David <[email protected]>
1 parent fe9c63f commit a3d12c0

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
@@ -106,17 +106,19 @@ You can take a view over [here](https://github.com/dominictarr/rc#standards)
106106
where to save those configs.
107107

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

112-
An example .db-migraterc config file could look like this:
112+
An example `.db-migraterc` config file could look like this:
113113

114114
```json
115115
{
116116
"sql-file": true,
117-
"configFile": "path/to/config/database.json"
117+
"configFile": "path/to/config/database.json",
118+
"table": "new_migration_table_name"
118119
}
119120
```
121+
Use `table` property in `.db-migraterc` config file to change the default name of migrations table.
120122

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

0 commit comments

Comments
 (0)