doc: update ordering fluent api (#3456)

This commit is contained in:
Ariel Mashraki
2023-04-09 15:00:16 +03:00
committed by GitHub
parent 064c9118b7
commit 5b1de3901a
6 changed files with 202 additions and 21 deletions

View File

@@ -375,7 +375,7 @@ func main() {
In case a field was renamed in the `ent/schema`, Ent won't detect this change as renaming and will propose `DropColumn`
and `AddColumn` changes in the diff stage. One way to get over this is to use the
[StorageKey](schema-fields.md#storage-key) option on the field and keep the old column name in the database table.
[StorageKey](schema-fields.mdx#storage-key) option on the field and keep the old column name in the database table.
However, using Atlas `Diff` hooks allow replacing the `DropColumn` and `AddColumn` changes with a `RenameColumn` change.
```go