diff --git a/frontend/src/lib/components/DatatableSchemaDiff.svelte b/frontend/src/lib/components/DatatableSchemaDiff.svelte index 0d26a9aee7..944bc2540e 100644 --- a/frontend/src/lib/components/DatatableSchemaDiff.svelte +++ b/frontend/src/lib/components/DatatableSchemaDiff.svelte @@ -149,6 +149,7 @@ import { sendUserToast } from '$lib/toast' import { runScriptAndPollResult } from '$lib/components/jobs/utils' import YAML from 'yaml' + import DrawerContent from './common/drawer/DrawerContent.svelte' interface Props { currentWorkspaceId: string @@ -260,7 +261,6 @@ // behind = parent changed → migration runs on fork to update const sourceSchema = direction === 'ahead' ? diff.forkSchema : diff.parentSchema migrationSql = generateMigrationSql(change, sourceSchema) - console.log('migrationSql', migrationSql) drawerOpen = true } @@ -437,57 +437,50 @@ drawerDirection === 'ahead' ? `Deploy to ${parentWorkspaceId}` : `Update ${currentWorkspaceId}`} -
-
-

- {drawerChange.schemaName}.{drawerChange.tableName} -

- - {drawerDirection === 'ahead' ? 'Fork → Parent' : 'Parent → Fork'} - -
- - -
-
- Schema diff (parent ↔ fork) -
-
- {#await import('$lib/components/DiffEditor.svelte')} -
- -
- {:then Module} - - {/await} -
-
- - -
-
- SQL migration -
-
- -
-
- - -
+ + {#snippet actions()} + {/snippet} +
+ +
+
+ Schema diff (parent ↔ fork) +
+
+ {#await import('$lib/components/DiffEditor.svelte')} +
+ +
+ {:then Module} + + {/await} +
+
+ + +
+
SQL migration
+
+ +
+
-
+ {/if}