From f4fe530db2a20da4ae6864b8d0dc22e9645407c1 Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Thu, 26 Mar 2026 20:42:31 +0100 Subject: [PATCH] revert --- .../src/lib/components/DatatableSchemaDiff.svelte | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/frontend/src/lib/components/DatatableSchemaDiff.svelte b/frontend/src/lib/components/DatatableSchemaDiff.svelte index 61c90f39c8..485559c31c 100644 --- a/frontend/src/lib/components/DatatableSchemaDiff.svelte +++ b/frontend/src/lib/components/DatatableSchemaDiff.svelte @@ -310,16 +310,12 @@ return } - // Update forked_from.schema: re-fetch the target's live schema for this table - // so the new baseline reflects the post-migration state + // Update forked_from.schema for the migrated table try { + const sourceSchema = + drawerDirection === 'ahead' ? drawerDiff.forkSchema : drawerDiff.parentSchema const { schemaName, tableName } = drawerChange - const targetLiveSchemaRaw = await WorkspaceService.getDatatableFullSchema({ - workspace: targetWorkspace, - requestBody: { source: `datatable://${dtName}` } - }) - const targetLiveSchema = apiSchemaToEditorSchema(targetLiveSchemaRaw) - const newTableDef = targetLiveSchema[schemaName]?.[tableName] + const newTableDef = sourceSchema[schemaName]?.[tableName] const forkSettings = await WorkspaceService.getSettings({ workspace: currentWorkspaceId