diff --git a/server/migrations/20200107214047_init.js b/server/data/migrations/20200107214047_init.js similarity index 100% rename from server/migrations/20200107214047_init.js rename to server/data/migrations/20200107214047_init.js diff --git a/server/migrations/20200109160637_user.js b/server/data/migrations/20200109160637_user.js similarity index 100% rename from server/migrations/20200109160637_user.js rename to server/data/migrations/20200109160637_user.js diff --git a/server/knexfile.js b/server/knexfile.js index e933bdd..4ac90b6 100644 --- a/server/knexfile.js +++ b/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: {