rogierslag/pg-migration

Issue in migrateAndStart(databaseClient, migrationsDir, cb) function argument

Opened this issue · 1 comments

I had to change Line 78
var changesetContent = _fsExtra2.default.readFileSync('{$migrationsDir}/' + changeset, 'UTF-8');
to
var changesetContent = _fsExtra2.default.readFileSync(migrationsDir+'/' + changeset, 'UTF-8');

because '{$migrationsDir}' is not able interpret value to the arg-value that is passed to migrateAndStart(databaseClient, migrationsDir, cb)

Where are you seeing that? In the repo that is not the code at line 78.