From 118989a9cc29589806d0d3707b1cb41372e088fd Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Thu, 9 Jan 2020 16:32:36 -0800 Subject: [PATCH] debug migrations path --- .../{ => data}/migrations/20200107214047_init.js | 0 .../{ => data}/migrations/20200109160637_user.js | 0 packages/server/server/knexfile.js | 10 ++++++++-- 3 files changed, 8 insertions(+), 2 deletions(-) rename packages/server/server/{ => data}/migrations/20200107214047_init.js (100%) rename packages/server/server/{ => data}/migrations/20200109160637_user.js (100%) diff --git a/packages/server/server/migrations/20200107214047_init.js b/packages/server/server/data/migrations/20200107214047_init.js similarity index 100% rename from packages/server/server/migrations/20200107214047_init.js rename to packages/server/server/data/migrations/20200107214047_init.js diff --git a/packages/server/server/migrations/20200109160637_user.js b/packages/server/server/data/migrations/20200109160637_user.js similarity index 100% rename from packages/server/server/migrations/20200109160637_user.js rename to packages/server/server/data/migrations/20200109160637_user.js diff --git a/packages/server/server/knexfile.js b/packages/server/server/knexfile.js index e933bdd..4ac90b6 100644 --- a/packages/server/server/knexfile.js +++ b/packages/server/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: {