diff --git a/backend/.sqlx/query-4a764cdcb847b71183425a7a0e863708ef7fe2c88b28d0667988a47b9e995c0e.json b/backend/.sqlx/query-4a764cdcb847b71183425a7a0e863708ef7fe2c88b28d0667988a47b9e995c0e.json index fd3f7b2b4f..9fde573b4d 100644 --- a/backend/.sqlx/query-4a764cdcb847b71183425a7a0e863708ef7fe2c88b28d0667988a47b9e995c0e.json +++ b/backend/.sqlx/query-4a764cdcb847b71183425a7a0e863708ef7fe2c88b28d0667988a47b9e995c0e.json @@ -16,7 +16,7 @@ ] }, "nullable": [ - true + false ] }, "hash": "4a764cdcb847b71183425a7a0e863708ef7fe2c88b28d0667988a47b9e995c0e" diff --git a/backend/migrations/20240708075901_flow_versioning_nit.down.sql b/backend/migrations/20240708075901_flow_versioning_nit.down.sql new file mode 100644 index 0000000000..9f8bb1326d --- /dev/null +++ b/backend/migrations/20240708075901_flow_versioning_nit.down.sql @@ -0,0 +1,2 @@ +-- Add down migration script here +ALTER TABLE flow_version ALTER COLUMN value DROP NOT NULL; \ No newline at end of file diff --git a/backend/migrations/20240708075901_flow_versioning_nit.up.sql b/backend/migrations/20240708075901_flow_versioning_nit.up.sql new file mode 100644 index 0000000000..c81b5aea48 --- /dev/null +++ b/backend/migrations/20240708075901_flow_versioning_nit.up.sql @@ -0,0 +1,3 @@ +-- Add up migration script here +UPDATE flow_version SET value = '{"modules":[]}'::jsonb WHERE value IS NULL; +ALTER TABLE flow_version ALTER COLUMN value SET NOT NULL; \ No newline at end of file diff --git a/backend/windmill-worker/src/dedicated_worker.rs b/backend/windmill-worker/src/dedicated_worker.rs index 08dedb7a7f..c3c14471cd 100644 --- a/backend/windmill-worker/src/dedicated_worker.rs +++ b/backend/windmill-worker/src/dedicated_worker.rs @@ -415,7 +415,7 @@ pub async fn create_dedicated_worker_map( flow_path, _wp.workspace_id ) - .fetch_one(db) + .fetch_optional(db) .await; if let Ok(v) = value { if let Some(v) = v {