Skip to content
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

Dry run auto migrate #5645

Closed
wants to merge 1 commit into from
Closed

Conversation

googollee
Copy link
Contributor

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Add a flag Config.DryRunMigration to let AutoMigrate() return an error before changing the schema.

User Case Description

See #5635.

Notice

it requires #5644 (migrate check constraints without relationship constraints) and #5620 (postgres) to run tests succeed

@googollee
Copy link
Contributor Author

Rebased with fix #5620.

@googollee googollee force-pushed the dry-run-auto-migrate branch 2 times, most recently from 052799c to 8b08d73 Compare August 25, 2022 14:59
@googollee
Copy link
Contributor Author

Rebased with the latest commit.

@jinzhu
Copy link
Member

jinzhu commented Oct 20, 2022

In favor of #5689

@jinzhu jinzhu closed this Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants