Skip to content

Commit db563d9

Browse files
committed
fix(createMigrationsTable): create schema
Create schema for migrations table before creation of migrations table if the schema not exists Signed-off-by: Alexander Maslov <[email protected]>
1 parent 49f3848 commit db563d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ var PgDriver = Base.extend({
238238
return this.all('SET search_path TO ' + searchPath);
239239
}.bind(this)
240240
)
241+
.then(
242+
function () {
243+
// create schema if not exists
244+
return this.all('SET search_path TO ' + this.schema);
245+
}.bind(this)
246+
)
241247
.then(
242248
function () {
243249
return this.all(

0 commit comments

Comments
 (0)