You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migrations/v0_3_to_v1_0/database/simple_migration.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
This guide is for users who can afford a short period of downtime (typically a few minutes) during the migration from A2A protocol v0.3 to v1.0. This is the recommended path for single-instance applications or non-critical services.
4
4
5
+
---
6
+
5
7
> [!WARNING]
6
8
> **Safety First:**
7
9
> Before proceeding, ensure you have a backup of your database.
Copy file name to clipboardExpand all lines: docs/migrations/v0_3_to_v1_0/database/zero_downtime.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,12 @@ uv run a2a-db --database-url "your-database-url"
46
46
> Protocol v1.0 is designed to be backward compatible by default. After this step, your new v1.0 code will be able to read existing v0.3 entries from the database using a built-in legacy parser.
47
47
48
48
#### ✅ How to Verify
49
-
Run `uv run a2a-db current` to ensure the migration was applied successfully.
49
+
Confirm the schema is at the correct version:
50
50
51
-
---
51
+
```bash
52
+
uv run a2a-db current
53
+
```
54
+
The output should show the latest revision ID (e.g., `38ce57e08137`).
52
55
53
56
### Step 2: Rolling Deployment in Compatibility Mode
54
57
@@ -83,8 +86,6 @@ Deploy the new code by restarting your instances one by one.
83
86
#### ✅ How to Verify
84
87
Verify that v1.0 instances are successfully writing to the database. In the `tasks` and `push_notification_configs` tables, new rows created during this phase should have `protocol_version` set to `0.3`.
85
88
86
-
---
87
-
88
89
### Step 3: Transition to v1.0 Mode
89
90
90
91
Once **100%** of your application instances are running v1.0 code (with compatibility mode enabled), you can switch to the v1.0 write format.
@@ -121,6 +122,7 @@ The A2A `DatabaseStore` classes follow a version-aware read/write pattern:
121
122
122
123
This allows v1.0 instances to read *all* existing data regardless of when it was written.
123
124
125
+
---
124
126
125
127
## 🧩 Resources
126
128
-**[a2a-db CLI](../../../../src/a2a/migrations/README.md)**: The primary tool for executing schema migrations.
0 commit comments