Skip to content

Commit a9c8987

Browse files
committed
add note for create class
1 parent 258e52e commit a9c8987

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/content/docs/durable-objects/reference/durable-objects-migrations.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ transferred_classes = [{from = "<SourceDurableObjectClass>", from_script = "<Sou
114114

115115
:::caution[Important]
116116

117-
The destination class (the class that stored Durable Objects are being transferred to) for a rename or transfer migration must be exported by the deployed Worker.
117+
- The destination class (the class that stored Durable Objects are being transferred to) for a rename or transfer migration must be exported by the deployed Worker.
118118

119-
After a rename or transfer migration, requests to the destination Durable Object class will have access to the source Durable Object's stored data.
119+
- You don't have to create the destination Durable Object class before running a rename or transfer migration. The migration will create the destination class for you.
120120

121-
After a migration, any existing bindings to the original Durable Object class (for example, from other Workers) will automatically forward to the updated destination class. However, any Workers bound to the updated Durable Object class must update their Durable Object binding configuration in the `wrangler` configuration file for their next deployment.
121+
- After a rename or transfer migration, requests to the destination Durable Object class will have access to the source Durable Object's stored data.
122+
123+
- After a migration, any existing bindings to the original Durable Object class (for example, from other Workers) will automatically forward to the updated destination class. However, any Workers bound to the updated Durable Object class must update their Durable Object binding configuration in the `wrangler` configuration file for their next deployment.
122124

123125
:::
124126

0 commit comments

Comments
 (0)