Remove folder/environment foreign keys to make sync/import easier, and simplify batch upsert code.

This commit is contained in:
Gregory Schier
2025-04-24 19:57:02 -07:00
parent 9fa0650647
commit bb014b7c43
6 changed files with 279 additions and 58 deletions

View File

@@ -448,7 +448,7 @@ pub(crate) async fn apply_sync_ops<R: Runtime>(
websocket_requests_to_upsert,
&UpdateSource::Sync,
)?;
// Ensure we create WorkspaceMeta models for each new workspace, with the appropriate sync dir
let sync_dir_string = sync_dir.to_string_lossy().to_string();
for workspace in upserted_models.workspaces {