YBogomolov / migro

Lightweight database migration framework
MIT License
5 stars 2 forks source link

Support for connection string format #3

Closed YBogomolov closed 7 years ago

YBogomolov commented 7 years ago

Driver: PG Steps to reproduce:

.migrorc file with the following content:

{
  "database": {
    "main": "postgresql://user:pwd@localhost:5432/db_name"
  }
}

Run migro up main.

Result:

  1. No error messages.
  2. No successful/failed migration reports.

Expected result:

  1. Either error message or migration report.
YBogomolov commented 7 years ago

Not a bug. To use connection strings with PostgreSQL, one needs to write the config as following:

{
  "database": {
    "main": {
      "connectionString": "postgresql://user:pwd@localhost:5432/db_name"
    }
  }
}