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

Sort columns when create comments #217

Merged
merged 2 commits into from
Oct 10, 2023
Merged

Conversation

artemklevtsov
Copy link
Contributor

@artemklevtsov artemklevtsov commented Sep 18, 2023

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

What did this pull request do?

Sort columns when creating comments in the CreateTable.

User Case Description

Iterating over the map gives unstable results. When I generate the database schema file it is different every time.

migrator.go Outdated Show resolved Hide resolved
@jinzhu jinzhu merged commit f538e03 into go-gorm:master Oct 10, 2023
1 check passed
PuneetPunamiya pushed a commit to PuneetPunamiya/postgres that referenced this pull request Jan 17, 2024
* Sort columns comments

* Simplify m.Migrator.CreateTable columns sortomg
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.

2 participants