8000 doc/md: add atlas migration import to versioned docs by masseelch · Pull Request #2942 · ent/ent · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

doc/md: add atlas migration import to versioned docs #2942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions doc/md/versioned-migrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,7 @@ longer needed after the first one.
## Apply Migrations

Ent recommends to use the Atlas CLI to apply the generated migration files onto the database. If you want to use any
other migration management tool, Ent has support for generating migrations for several of them
out of the box.
other migration management tool, Ent has support for generating migrations for several of them out of the box.

```shell
atlas migrate apply \
Expand All @@ -553,6 +552,14 @@ atlas migrate apply \

For more information head over the the [Atlas documentation](https://atlasgo.io/versioned/apply).

:::info

In previous versions of Ent [`golang-migrate/migrate`](https://github.com/golang-migrate/migrate) has been the default
migration execution engine. For an easy transition, Atlas can import the migrations format of golang-migrate for you.
You can learn more about it in the [Atlas documentation](https://atlasgo.io/versioned/import).

:::

## Moving from Auto-Migration to Versioned Migrations

In case you already have an Ent application in production and want to switch over from auto migration to the new
Expand Down
0