Skip to content

Commit d2fdb33

Browse files
committed
Always also install extensions into the public schema
1 parent 5bf4ba3 commit d2fdb33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/orm-migrate/src/push.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export const push = async (db: Orm) => {
2323
for (const schema of schemas) {
2424
await db.query(createExtensionsSql(schema, extension));
2525
}
26+
27+
if (!schemas.has("public")) {
28+
await db.query(createExtensionsSql("public", extension));
29+
}
2630
}
2731
for (const model of Object.values(db.config.models)) {
2832
console.log(` - Creating table "${model.schema}"."${model.table}"`);

0 commit comments

Comments
 (0)