Skip to content

Commit 4bdfeba

Browse files
committed
fix: create schema regex
1 parent 6db4817 commit 4bdfeba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sync/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class PostgresSchemaLink {
9292
// Important: we ONLY want to remove the public schema directive.
9393
// If the user wants to dump a different schema it still needs to be created
9494
// we should also remove the comments describing the schema above but meh
95-
return schema.replace(/^CREATE SCHEMA public\s*\n\n?/m, "")
95+
return schema.replace(/^CREATE SCHEMA public.*\n\n?/m, "")
9696
// strip unrestrict and restrict statements. They're only valid for psql
9797
// and will break things if imported by pglite
9898
// added in pg_dump 17.6+

0 commit comments

Comments
 (0)