mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-27 09:45:58 -04:00
feat(database): add replace-existing option for PostgreSQL restores
Allow single-database PostgreSQL imports to drop matching objects before restore. The API and import form accept replace_existing, which adds --clean --if-exists to pg_restore, and pg_restore now uses --exit-on-error.
This commit is contained in:
@@ -21764,6 +21764,11 @@
|
||||
"dump_all": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"replace_existing": {
|
||||
"description": "Drop matching PostgreSQL objects before restoring a single-database archive.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -21790,6 +21795,11 @@
|
||||
"dump_all": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"replace_existing": {
|
||||
"description": "Drop matching PostgreSQL objects before restoring a single-database archive.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -21813,6 +21823,11 @@
|
||||
"dump_all": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"replace_existing": {
|
||||
"description": "Drop matching PostgreSQL objects before restoring a single-database archive.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
||||
Reference in New Issue
Block a user