diff --git a/index.js b/index.js index 6089c67..0266044 100644 --- a/index.js +++ b/index.js @@ -241,7 +241,7 @@ var PgDriver = Base.extend({ .then( function () { // create schema if not exists - return this.all('CREATE SCHEMA IF NOT EXISTS ' + searchPath); + return this.all('SET search_path TO ' + this.schema); }.bind(this) ) .then(