From 5c12f48686f726be83925e2aaef25366ebf0650c Mon Sep 17 00:00:00 2001 From: Christian Siewert Date: Thu, 18 Apr 2024 18:18:15 +0200 Subject: [PATCH] Fix the path for the HTTP request for database migrations This fix only changes the path to `{targetModel}/migrate` which applies all migrations. It does not address the UI, which gives the impression, that one would apply 'all up to' a single migrations. --- .../src/databases/api/DatabasesRestClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Moryx.CommandCenter.Web/src/databases/api/DatabasesRestClient.ts b/src/Moryx.CommandCenter.Web/src/databases/api/DatabasesRestClient.ts index 4efb86bd4..9c508b397 100644 --- a/src/Moryx.CommandCenter.Web/src/databases/api/DatabasesRestClient.ts +++ b/src/Moryx.CommandCenter.Web/src/databases/api/DatabasesRestClient.ts @@ -54,7 +54,7 @@ export default class DatabasesRestClient extends RestClientBase { } public applyMigration(targetModel: string, migrationName: string, request: DatabaseConfigModel): Promise { - return this.post(DatabasesRestClient.pathTo(targetModel, `/${migrationName}/migrate`), request, new DatabaseUpdateSummary()); + return this.post(DatabasesRestClient.pathTo(targetModel, `/migrate`), request, new DatabaseUpdateSummary()); } public rollbackDatabase(targetModel: string, request: DatabaseConfigModel): Promise {