From 800df450821c518b9a3950815f63cb7e23eb2f1d Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Thu, 9 Jan 2020 16:32:36 -0800 Subject: [PATCH] debug migrations path --- server/{ => data}/migrations/20200107214047_init.js | 0 server/{ => data}/migrations/20200109160637_user.js | 0 server/knexfile.js | 10 ++++++++-- 3 files changed, 8 insertions(+), 2 deletions(-) rename server/{ => data}/migrations/20200107214047_init.js (100%) rename server/{ => data}/migrations/20200109160637_user.js (100%) 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: {