From 6e057e89b9a42f353b5b2a4e381c7d855f661efb Mon Sep 17 00:00:00 2001 From: Arpit Date: Thu, 19 Jan 2023 15:32:21 +0530 Subject: [PATCH] [Bugfix] The sequence of primary columns in the table changes after updating rows using the query builder (#5374) * fixes: The sequence of primary columns in the table changes after updating rows using the query builder * Revert "fixes: The sequence of primary columns in the table changes after updating rows using the query builder" This reverts commit b0f262332e27986f5ccfa6498a956a464b8a3373. * update query with order as parameter --- .../QueryManager/QueryEditors/TooljetDatabase/operations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/QueryManager/QueryEditors/TooljetDatabase/operations.js b/frontend/src/Editor/QueryManager/QueryEditors/TooljetDatabase/operations.js index e59e2accf5..1acecf40c7 100644 --- a/frontend/src/Editor/QueryManager/QueryEditors/TooljetDatabase/operations.js +++ b/frontend/src/Editor/QueryManager/QueryEditors/TooljetDatabase/operations.js @@ -92,7 +92,7 @@ async function updateRows(queryOptions, organizationId, currentState) { !isEmpty(whereQuery) && query.push(whereQuery); - return await tooljetDatabaseService.updateRows(organizationId, tableName, body, query.join('&')); + return await tooljetDatabaseService.updateRows(organizationId, tableName, body, query.join('&') + '&order=id'); } async function deleteRows(queryOptions, organizationId, currentState) {