Skip to content

Commit

Permalink
fix: set search path correctly for knex
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Dec 11, 2020
1 parent 717f3ed commit 853c23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/database/knex.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let knexConfig = {
}

if(process.env.DATABASE_SCHEMA){
knexConfig.search_path = [process.env.DATABASE_SCHEMA]
knexConfig.searchPath = [process.env.DATABASE_SCHEMA]
}

const knex = require('knex')(knexConfig);
Expand Down

0 comments on commit 853c23e

Please sign in to comment.