Skip to content

Commit 0eb416f

Browse files
authored
restore backup to the database of the restored config and not to the one of the old config (#2388)
* refactor dbConnection to allow importing from everywhere * get rid of passing down dbconnect as property * restore to the database of the restored config and not to the one of the old config * adapt changelog
1 parent e2d44e8 commit 0eb416f

File tree

7 files changed

+862
-839
lines changed

7 files changed

+862
-839
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
* (Apollon77/foxriver76) Make sure that all relevant files are removed when eraseOnUpload is used
4747
* (foxriver76) fix wrong hostname after backup restore
4848
* (bluefox) allow CLI vendor update without explicitly specifying vendor file (default file is used)
49+
* (foxriver76) fix backup restore restoring to old database and using new one afterwards
4950
* (Apollon77, foxriver76, bluefox, AlCalzone) Several fixes and refactorings to prevent potential crash cases reported by Sentry and other sources
5051

5152
**Developer relevant DEPRECATIONS/WARNINGS**

packages/cli/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
export { execute, dbConnectAsync } from './lib/setup';
1+
export { execute } from './lib/setup';
2+
export { dbConnectAsync } from './lib/setup/dbConnection';
23
// required by main.ts
34
export { Vendor } from './lib/setup/setupVendor';
45
// required by main.ts

packages/cli/src/lib/setup.ts

Lines changed: 234 additions & 666 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)