Header menu logo Migrondi

Migrondi.json

To be able to use this tool you need to supply a JSON configuration file named migrondi.json this file can be on the root of your project or in a dedicated directory such as migrations.

{
  "connection": "Data Source=./migrondi.db",
  "migrations": "./migrations",
  "tableName": "__migrondi_migrations",
  "driver": "sqlite"
}

Environment Variables and CLI options

The following environment variables can be used to configure migrondi:

You can pass the options via the CLI:

For example:

migrondi --driver sqlite --connection "Data Source=./migrondi.db" up --dry

*NOTE*: The configuration flags MUST be passed before the command, otherwise they will be interpreted as arguments for the command and will fail.

The priority of the configuration is as follows:

migrondi.json < Environment variables < CLI options

Type something to start searching.