From f231a622b48c8708b9e8377f732bdb36906d16d9 Mon Sep 17 00:00:00 2001 From: Alexander Maslov Date: Sat, 16 May 2020 13:50:37 +0300 Subject: [PATCH] fix(createMigrationsTable): fix schema creation --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(