doc: fix typo in data-migrations.mdx (#3973)

This commit is contained in:
max yue
2024-03-14 15:50:14 +08:00
committed by GitHub
parent 13437cba78
commit 0a32b6f2bf

View File

@@ -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.