Skip to content

Commit 34c4dfa

Browse files
authored
Update sailsDbMigrate.js
this will fix issue building5#36
1 parent 41ffc84 commit 34c4dfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sailsDbMigrate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function parseSailsConfig(sailsConfig) {
8282
throw new Error('connection missing from ./config/migrations.js');
8383
}
8484

85-
connection = sailsConfig.connections[connectionName];
85+
connection = sailsConfig.datastores[connectionName];
8686

8787
if (!connection) {
8888
throw new Error('could not find connection ' + connectionName + ' in ./config/connections.js');

0 commit comments

Comments
 (0)