clone migrations on fork

This commit is contained in:
Diego Imbert
2026-07-03 14:10:30 +02:00
parent 7612d7b712
commit 154f31a054
5 changed files with 83 additions and 6 deletions
@@ -3974,6 +3974,15 @@ async fn clone_workspace_data(
// Clone workspace settings (merge with existing basic settings)
update_workspace_settings(tx, source_workspace_id, target_workspace_id).await?;
// Clone data table migration definitions (the settings above carry the data
// table config; this carries their migration history).
crate::datatable_migrations::clone_datatable_migrations(
tx,
source_workspace_id,
target_workspace_id,
)
.await?;
// Clone workspace environment variables
clone_workspace_env(tx, source_workspace_id, target_workspace_id).await?;