Add comments
This commit is contained in:
parent
48b1f26e86
commit
3b1915c705
|
@ -7,10 +7,11 @@ describe("getExternalSchema", () => {
|
||||||
describe("postgres", () => {
|
describe("postgres", () => {
|
||||||
let config: any
|
let config: any
|
||||||
|
|
||||||
|
// Remove versioning from the outputs to prevent failures when running different pg_dump versions
|
||||||
function stripResultsVersions(sql: string) {
|
function stripResultsVersions(sql: string) {
|
||||||
const result = sql
|
const result = sql
|
||||||
.replace(/\n[^\n]+Dumped from database version[^\n]+\n/, "")
|
.replace(/\n[^\n]+Dumped from database version[^\n]+\n/, "")
|
||||||
.replace(/\n[^\n]+umped by pg_dump version[^\n]+\n/, "")
|
.replace(/\n[^\n]+Dumped by pg_dump version[^\n]+\n/, "")
|
||||||
.toString()
|
.toString()
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue