@envsync-cloud/deploy-cli 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6720,7 +6720,7 @@ function createApiDbUpgradeBackup(config, fromVersion, toVersion) {
|
|
|
6720
6720
|
"postgres:17",
|
|
6721
6721
|
"sh",
|
|
6722
6722
|
"-lc",
|
|
6723
|
-
`pg_dump -h
|
|
6723
|
+
`pg_dump -h ${config.services.stack_name}_postgres -U postgres -d envsync -Fc -f /backup/${fileName}`
|
|
6724
6724
|
]);
|
|
6725
6725
|
logSuccess(`API DB upgrade snapshot created at ${hostPath}`);
|
|
6726
6726
|
return hostPath;
|
|
@@ -6744,7 +6744,7 @@ function restoreApiDbUpgradeBackup(config, backupPath) {
|
|
|
6744
6744
|
"postgres:17",
|
|
6745
6745
|
"sh",
|
|
6746
6746
|
"-lc",
|
|
6747
|
-
`pg_restore --clean --if-exists --no-owner --no-privileges -h
|
|
6747
|
+
`pg_restore --clean --if-exists --no-owner --no-privileges -h ${config.services.stack_name}_postgres -U postgres -d envsync /backup/${fileName}`
|
|
6748
6748
|
]);
|
|
6749
6749
|
logSuccess(`API DB upgrade snapshot restored from ${backupPath}`);
|
|
6750
6750
|
}
|