Skip to content

Commit 328407f

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 42e289b commit 328407f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

+6
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('CREATE SCHEMA IF NOT EXISTS ' + searchPath);
245+
}.bind(this)
246+
)
241247
.then(
242248
function () {
243249
return this.all(

0 commit comments

Comments
 (0)