From 0ac529c798bffa85c68072f48c6e3eba9860ac8f Mon Sep 17 00:00:00 2001 From: Anas Khan <83116240+anxkhn@users.noreply.github.com> Date: Sat, 4 Jul 2026 19:03:31 +0530 Subject: [PATCH] docs: fix undefined variable in schema evolution transaction example The schema-evolution-in-a-transaction example bound the inner context manager as update_schema but called update.add_column(...), where update is undefined in that scope (it is left over from the preceding standalone example). Copy-pasting the snippet raised NameError. Use the bound name update_schema, matching the create_table_transaction example above. --- mkdocs/docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs/docs/api.md b/mkdocs/docs/api.md index b23f7b976e..cc4290f2d9 100644 --- a/mkdocs/docs/api.md +++ b/mkdocs/docs/api.md @@ -1170,7 +1170,7 @@ You can also initiate a transaction if you want to make more changes than just e ```python with table.transaction() as transaction: with transaction.update_schema() as update_schema: - update.add_column("some_other_field", IntegerType(), "doc") + update_schema.add_column("some_other_field", IntegerType(), "doc") # ... Update properties etc ```