mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
doc: fix typo in data-migrations.mdx (#3973)
This commit is contained in:
@@ -269,7 +269,7 @@ until the data migration file achieves the desired result.
|
||||
|
||||
In the declarative workflow, data migrations are implemented using Diff or Apply [Hooks](migrate#atlas-diff-and-apply-hooks).
|
||||
This is because, unlike the versioned option, migrations of this type do not hold a name or a version when they are applied.
|
||||
Therefore, when a data is are written using hooks, the type of the `schema.Change` must be checked before its
|
||||
Therefore, when a data is written using hooks, the type of the `schema.Change` must be checked before its
|
||||
execution to ensure the data migration was not applied more than once.
|
||||
|
||||
```go
|
||||
@@ -313,4 +313,4 @@ func FillNullValues(dbdialect string) schema.ApplyHook {
|
||||
}
|
||||
```
|
||||
|
||||
For more examples, check out the [Apply Hook](migrate.md#apply-hook-example) examples section.
|
||||
For more examples, check out the [Apply Hook](migrate.md#apply-hook-example) examples section.
|
||||
|
||||
Reference in New Issue
Block a user