Skip to content

Commit 144902d

Browse files
committed
workaround for sqlc-dev/sqlc#4065
1 parent e73a135 commit 144902d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sql/sql.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ func DumpSchema() error {
137137
ok, err := sh.Exec(nil, outFile, os.Stderr,
138138
"docker", "run", "--rm", "--network", "host",
139139
postgresImage,
140-
"pg_dump", connString,
141-
"--schema-only", "--no-owner", "--no-privileges",
140+
"sh", "-c",
141+
fmt.Sprintf("pg_dump %s --schema-only --no-owner --no-privileges | sed -e 's/^\\\\\\(un\\)\\?restrict.*//'", connString),
142142
)
143143
if err != nil {
144144
return fmt.Errorf("run pg_dump: %w", err)

0 commit comments

Comments
 (0)