Skip to content

postgres: db:create doesn't work #307

@mdreizin

Description

@mdreizin

db-migrate db:create test

[INFO] Created database "test"
[ERROR] TypeError: undefined is not a function
    at Class.Base.extend.close (/usr/local/lib/node_modules/db-migrate/lib/driver/pg.js:359:9)
    at null.callback (/usr/local/lib/node_modules/db-migrate/bin/db-migrate:274:12)
    at Query.handleError (/usr/local/lib/node_modules/db-migrate/node_modules/pg/lib/query.js:97:17)
    at null.<anonymous> (/usr/local/lib/node_modules/db-migrate/node_modules/pg/lib/client.js:166:26)
    at emit (events.js:107:17)
    at Socket.<anonymous> (/usr/local/lib/node_modules/db-migrate/node_modules/pg/lib/connection.js:109:12)
    at Socket.emit (events.js:107:17)
    at readableAddChunk (_stream_readable.js:163:16)
    at Socket.Readable.push (_stream_readable.js:126:10)
    at TCP.onread (net.js:538:20)

database.json

{
  "dev": {
    "driver": "pg",
    "host": "localhost"
  }
}

What kind of options should be defined to successfully create database?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions