From f8c216d301c01a8849e4288257f1672d89e65dae Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Fri, 3 Jul 2026 17:45:58 +0200 Subject: [PATCH] docs: fix generate_initial migration ordering comment to match code --- .../windmill-api-workspaces/src/datatable_migrations.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/windmill-api-workspaces/src/datatable_migrations.rs b/backend/windmill-api-workspaces/src/datatable_migrations.rs index ec01f9588b..c949239a06 100644 --- a/backend/windmill-api-workspaces/src/datatable_migrations.rs +++ b/backend/windmill-api-workspaces/src/datatable_migrations.rs @@ -1173,9 +1173,10 @@ async fn upsert_datatable_migration( } /// Generate the first migration for a data table by snapshotting its current -/// schema with `pg_dump`. The migration is recorded as already installed (its -/// version is written to `_wm_migrations` *before* the definition row, so it is -/// always considered applied and never re-run) and has no down migration. +/// schema with `pg_dump`. The migration is recorded as already installed (the +/// definition is written first, then its version is marked in the data table's +/// `_wm_migrations`, so it ends up considered applied and is never re-run) and +/// has no down migration. async fn generate_initial_datatable_migration( authed: ApiAuthed, Extension(db): Extension,