From db563d9185a115c49dc769ecece00f7c9126fe87 Mon Sep 17 00:00:00 2001 From: Alexander Maslov Date: Thu, 9 Apr 2020 16:51:43 +0300 Subject: [PATCH] fix(createMigrationsTable): create schema Create schema for migrations table before creation of migrations table if the schema not exists Signed-off-by: Alexander Maslov --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index dd262b4..0266044 100644 --- a/index.js +++ b/index.js @@ -238,6 +238,12 @@ var PgDriver = Base.extend({ return this.all('SET search_path TO ' + searchPath); }.bind(this) ) + .then( + function () { + // create schema if not exists + return this.all('SET search_path TO ' + this.schema); + }.bind(this) + ) .then( function () { return this.all(