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

AutoMigrate() should always migrate checks, even there is no relationship constraints. #5644

Merged
merged 2 commits into from Sep 14, 2022

Conversation

googollee
Copy link
Contributor

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

What did this pull request do?

Fix bug: AutoMigrate() doesn't update check constraints if there is no relationship constraints.

User Case Description

AutoMigrate() updates check constraints, no matter there are relationship constraints or not.

@googollee
Copy link
Contributor Author

postgres failures should be fixed by #5620. mysql failures are caused by envrionment setup.

@googollee googollee mentioned this pull request Aug 25, 2022
3 tasks
@googollee
Copy link
Contributor Author

Rebased with fix #5620.

@jinzhu jinzhu merged commit edb00c1 into go-gorm:master Sep 14, 2022
@googollee googollee deleted the fix-auto-migrate branch September 14, 2022 21:14
jinzhu pushed a commit that referenced this pull request Sep 22, 2022
…ship constraints. (#5644)

* fix: remove uuid autoincrement

* AutoMigrate() should always migrate checks, even there is no relationship constranits.

Co-authored-by: a631807682 <631807682@qq.com>
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

3 participants