diff --git a/packages/server/packages/play-node-go/server/migrations/20200107214047_init.js b/packages/server/packages/play-node-go/server/data/migrations/20200107214047_init.js similarity index 100% rename from packages/server/packages/play-node-go/server/migrations/20200107214047_init.js rename to packages/server/packages/play-node-go/server/data/migrations/20200107214047_init.js diff --git a/packages/server/packages/play-node-go/server/migrations/20200109160637_user.js b/packages/server/packages/play-node-go/server/data/migrations/20200109160637_user.js similarity index 100% rename from packages/server/packages/play-node-go/server/migrations/20200109160637_user.js rename to packages/server/packages/play-node-go/server/data/migrations/20200109160637_user.js diff --git a/packages/server/packages/play-node-go/server/knexfile.js b/packages/server/packages/play-node-go/server/knexfile.js index e933bdd..4ac90b6 100644 --- a/packages/server/packages/play-node-go/server/knexfile.js +++ b/packages/server/packages/play-node-go/server/knexfile.js @@ -5,12 +5,18 @@ module.exports = { development: { client: 'postgresql', - connection: process.env.PG_CONNECTION_STRING + connection: process.env.PG_CONNECTION_STRING, + migrations: { + directory: './data/migrations', + }, }, test: { client: 'postgresql', - connection: process.env.PG_CONNECTION_STRING_TEST + connection: process.env.PG_CONNECTION_STRING_TEST, + migrations: { + directory: './data/migrations', + }, }, staging: {