Database provider of the target DB where migrations will be applied
db:
provider: PostgreSQL
{
"db": {
"provider": "PostgreSQL"
}
}
export DINGO_DB__PROVIDER=PostgreSQL
migration.delimiter
Regular expression to specify migration file line that separates up and down parts of a migration.
migration:
delimiter: '^--\s*down$'
{
"migration": {
"delimiter": "^--\s*down$"
}
}
export DINGO_MIGRATION__DELIMITER="^--\s*down$"
migration.wildcard
Wildcard used to search migration files in the specified directory
migration:
wildcard: *.sql
{
"migration": {
"wildcard": "*.sql"
}
}
export DINGO_MIGRATION__WILDCARD="*.sql"
migration.force-paths
List of paths containing migrations that need to be forcefully applied on every patch. The most common use-case is to reapply all stored procedures / functions after user defined types have been changed.
Path where migration files are stored. Can be provided either in the configuration file or as a -p parameter
migration:
path: ./db/auth
{
"migration": {
"path": "./db/auth"
}
}
export DINGO_MIGRATION__PATH="./db/auth"
migration.down-required
Specifies if down part of migrations is required. If true - applying migrations will fail if any of migration files in the specified directory lack the down part.