mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
doc/md: add missing codereview comment (#2852)
This commit is contained in:
@@ -16,7 +16,7 @@ your needs and be applied by many existing migration tools, such as golang-migra
|
||||
As mentioned above, versioned migrations only work if the new [Atlas](https://atlasgo.io) based migration engine is
|
||||
used. Migration files are generated by computing the difference between two **states**. We call the state reflected by
|
||||
your Ent schema the **desired** state, and the **current** state is the last state of your schema before your most
|
||||
recent changes. There two ways for Ent to determine the current state:
|
||||
recent changes. There are two ways for Ent to determine the current state:
|
||||
|
||||
1. Replay the existing migration directory and inspect the schema (default)
|
||||
2. Connect to an existing database and inspect the schema
|
||||
@@ -68,7 +68,7 @@ import (
|
||||
|
||||
func main() {
|
||||
err := entc.Generate("./schema", &gen.Config{
|
||||
//highlight-next-line
|
||||
//highlight-next-line
|
||||
Features: []gen.Feature{gen.FeatureVersionedMigration},
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user