Skip to content

Commit ce9e183

Browse files
committed
Adding migration inheritance detail.
1 parent f754769 commit ce9e183

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ transferred_classes = [{from = "DurableObjectExample", from_script = "OldWorkerS
269269

270270
- Migration tags are treated like unique names and are used to determine which migrations have already been applied. Once a given Worker code has a migration tag set on it, all future Worker code deployments must include a migration tag.
271271

272-
- The migration list is an ordered array of tables, specified as a top-level key in your `wrangler` configuration file.
272+
- The migration list is an ordered array of tables, specified as a key in your Wrangler configuration file. You can define the migration for each environment, as well as at the top level.
273+
274+
- If a migration is only specified at the top-level, but not at the environment-level, the environment will inherit the top-level migration. Migrations at the top-level can be overridden by migrations in environments.
273275

274276
- All migrations are applied at deployment. Each migration can only be applied once per [environment](/durable-objects/reference/environments/).
275277

0 commit comments

Comments
 (0)