We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6db4817 commit 4bdfebaCopy full SHA for 4bdfeba
src/sync/schema.ts
@@ -92,7 +92,7 @@ export class PostgresSchemaLink {
92
// Important: we ONLY want to remove the public schema directive.
93
// If the user wants to dump a different schema it still needs to be created
94
// we should also remove the comments describing the schema above but meh
95
- return schema.replace(/^CREATE SCHEMA public\s*\n\n?/m, "")
+ return schema.replace(/^CREATE SCHEMA public.*\n\n?/m, "")
96
// strip unrestrict and restrict statements. They're only valid for psql
97
// and will break things if imported by pglite
98
// added in pg_dump 17.6+
0 commit comments