diff --git a/codegen-examples/examples/sqlalchemy_1.6_to_2.0/README.md b/codegen-examples/examples/sqlalchemy_1.6_to_2.0/README.md
index c2b231fc2..6385eb110 100644
--- a/codegen-examples/examples/sqlalchemy_1.6_to_2.0/README.md
+++ b/codegen-examples/examples/sqlalchemy_1.6_to_2.0/README.md
@@ -1,8 +1,8 @@
-# SQLAlchemy 1.6 to 2.0 Migration Example
+# SQLAlchemy 1.4 to 2.0 Migration Example
-[](https://docs.codegen.com/tutorials/sqlalchemy-1.6-to-2.0)
+[](https://docs.codegen.com/tutorials/sqlalchemy-1.4-to-2.0)
-This example demonstrates how to use Codegen to automatically migrate SQLAlchemy 1.6 code to the new 2.0-style query interface. For a complete walkthrough, check out our [tutorial](https://docs.codegen.com/tutorials/sqlalchemy-1.6-to-2.0).
+This example demonstrates how to use Codegen to automatically migrate SQLAlchemy 1.4 code to the new 2.0-style query interface. For a complete walkthrough, check out our [tutorial](https://docs.codegen.com/tutorials/sqlalchemy-1.4-to-2.0).
## How the Migration Script Works
@@ -94,7 +94,7 @@ python run.py
## Learn More
-- [Full Tutorial](https://docs.codegen.com/tutorials/sqlalchemy-1.6-to-2.0)
+- [Full Tutorial](https://docs.codegen.com/tutorials/sqlalchemy-1.4-to-2.0)
- [SQLAlchemy Documentation](https://docs.sqlalchemy.org/en/20/)
- [What's New in SQLAlchemy 2.0](https://docs.sqlalchemy.org/en/20/changelog/migration_20.html)
- [Codegen Documentation](https://docs.codegen.com)
diff --git a/codegen-examples/examples/sqlalchemy_1.6_to_2.0/run.py b/codegen-examples/examples/sqlalchemy_1.6_to_2.0/run.py
index 639dabd61..2a0b5bcb3 100644
--- a/codegen-examples/examples/sqlalchemy_1.6_to_2.0/run.py
+++ b/codegen-examples/examples/sqlalchemy_1.6_to_2.0/run.py
@@ -4,15 +4,15 @@
from codegen.sdk.core.expressions.chained_attribute import ChainedAttribute
-@codegen.function("sqlalchemy-1.6-to-2.0")
+@codegen.function("sqlalchemy-1.4-to-2.0")
def run(codebase: Codebase):
"""
- Convert SQLAlchemy 1.6 codebases to 2.0.
+ Convert SQLAlchemy 1.4 codebases to 2.0.
"""
files_modified = 0
functions_modified = 0
- print("\nStarting SQLAlchemy 1.6 to 2.0 migration...")
+ print("\nStarting SQLAlchemy 1.4 to 2.0 migration...")
for file in codebase.files:
file_modified = False
@@ -101,5 +101,5 @@ def run(codebase: Codebase):
repo_path = "./input_repo"
print("Initializing codebase...")
codebase = Codebase(repo_path)
- print("Running SQLAlchemy 1.6 to 2.0 codemod...")
+ print("Running SQLAlchemy 1.4 to 2.0 codemod...")
run(codebase)
diff --git a/docs/tutorials/at-a-glance.mdx b/docs/tutorials/at-a-glance.mdx
index 4a4da1fd9..1bdd1ce11 100644
--- a/docs/tutorials/at-a-glance.mdx
+++ b/docs/tutorials/at-a-glance.mdx
@@ -51,9 +51,9 @@ Explore our tutorials to learn how to use Codegen for various code transformatio
Update API calls, handle breaking changes, and manage bulk updates across your codebase.
Update SQLAlchemy code to use the new 2.0-style query interface and patterns.
diff --git a/docs/tutorials/sqlalchemy-1.6-to-2.0.mdx b/docs/tutorials/sqlalchemy-1.6-to-2.0.mdx
index 42e1ecb39..daee01f8b 100644
--- a/docs/tutorials/sqlalchemy-1.6-to-2.0.mdx
+++ b/docs/tutorials/sqlalchemy-1.6-to-2.0.mdx
@@ -1,15 +1,15 @@
---
-title: "Migrating from SQLAlchemy 1.6 to 2.0"
-sidebarTitle: "SQLAlchemy 1.6 to 2.0"
-description: "Learn how to migrate SQLAlchemy 1.6 codebases to 2.0 using Codegen"
+title: "Migrating from SQLAlchemy 1.4 to 2.0"
+sidebarTitle: "SQLAlchemy 1.4 to 2.0"
+description: "Learn how to migrate SQLAlchemy 1.4 codebases to 2.0 using Codegen"
icon: "layer-group"
iconType: "solid"
---
-Migrating from [SQLAlchemy](https://www.sqlalchemy.org/) 1.6 to 2.0 involves several API changes to support the new 2.0-style query interface. This guide will walk you through using Codegen to automate this migration, handling query syntax, session usage, and ORM patterns.
+Migrating from [SQLAlchemy](https://www.sqlalchemy.org/) 1.4 to 2.0 involves several API changes to support the new 2.0-style query interface. This guide will walk you through using Codegen to automate this migration, handling query syntax, session usage, and ORM patterns.
-You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-sdk/tree/develop/codegen-examples/examples/sqlalchemy_1.6_to_2.0).
+You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-sdk/tree/develop/codegen-examples/examples/sqlalchemy_1.4_to_2.0).
## Overview
diff --git a/src/codegen/cli/mcp/resources/system_prompt.py b/src/codegen/cli/mcp/resources/system_prompt.py
index 5f8ead36d..55bb77de0 100644
--- a/src/codegen/cli/mcp/resources/system_prompt.py
+++ b/src/codegen/cli/mcp/resources/system_prompt.py
@@ -6026,9 +6026,9 @@ def get_method_context(method):
Update API calls, handle breaking changes, and manage bulk updates across your codebase.
Update SQLAlchemy code to use the new 2.0-style query interface and patterns.
@@ -9045,17 +9045,17 @@ def temp_dir():
---
-title: "Migrating from SQLAlchemy 1.6 to 2.0"
-sidebarTitle: "SQLAlchemy 1.6 to 2.0"
-description: "Learn how to migrate SQLAlchemy 1.6 codebases to 2.0 using Codegen"
+title: "Migrating from SQLAlchemy 1.4 to 2.0"
+sidebarTitle: "SQLAlchemy 1.4 to 2.0"
+description: "Learn how to migrate SQLAlchemy 1.4 codebases to 2.0 using Codegen"
icon: "layer-group"
iconType: "solid"
---
-Migrating from [SQLAlchemy](https://www.sqlalchemy.org/) 1.6 to 2.0 involves several API changes to support the new 2.0-style query interface. This guide will walk you through using Codegen to automate this migration, handling query syntax, session usage, and ORM patterns.
+Migrating from [SQLAlchemy](https://www.sqlalchemy.org/) 1.4 to 2.0 involves several API changes to support the new 2.0-style query interface. This guide will walk you through using Codegen to automate this migration, handling query syntax, session usage, and ORM patterns.
-You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/sqlalchemy_1.6_to_2.0).
+You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/sqlalchemy_1.4_to_2.0).
## Overview
diff --git a/src/codegen/sdk/system-prompt.txt b/src/codegen/sdk/system-prompt.txt
index 4b04b1d33..1d4ccf0c6 100644
--- a/src/codegen/sdk/system-prompt.txt
+++ b/src/codegen/sdk/system-prompt.txt
@@ -6304,9 +6304,9 @@ Explore our tutorials to learn how to use Codegen for various code transformatio
Update API calls, handle breaking changes, and manage bulk updates across your codebase.
Update SQLAlchemy code to use the new 2.0-style query interface and patterns.
@@ -9712,17 +9712,17 @@ def temp_dir():
---
-title: "Migrating from SQLAlchemy 1.6 to 2.0"
-sidebarTitle: "SQLAlchemy 1.6 to 2.0"
-description: "Learn how to migrate SQLAlchemy 1.6 codebases to 2.0 using Codegen"
+title: "Migrating from SQLAlchemy 1.4 to 2.0"
+sidebarTitle: "SQLAlchemy 1.4 to 2.0"
+description: "Learn how to migrate SQLAlchemy 1.4 codebases to 2.0 using Codegen"
icon: "layer-group"
iconType: "solid"
---
-Migrating from [SQLAlchemy](https://www.sqlalchemy.org/) 1.6 to 2.0 involves several API changes to support the new 2.0-style query interface. This guide will walk you through using Codegen to automate this migration, handling query syntax, session usage, and ORM patterns.
+Migrating from [SQLAlchemy](https://www.sqlalchemy.org/) 1.4 to 2.0 involves several API changes to support the new 2.0-style query interface. This guide will walk you through using Codegen to automate this migration, handling query syntax, session usage, and ORM patterns.
-You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/sqlalchemy_1.6_to_2.0).
+You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/sqlalchemy_1.4_to_2.0).
## Overview