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

Fix codegen with Enum in expanded format #624

Merged
merged 1 commit into from
Mar 22, 2022
Merged

Conversation

billy1624
Copy link
Member

PR Info

Fixes

  • Match ColumnType::Enum inside get_def

@billy1624 billy1624 self-assigned this Mar 22, 2022
@billy1624
Copy link
Member Author

Hey @pymongo, please try this PR.

  1. Cloning this branch to your local machine
  2. Change directory cd sea-orm/sea-orm-cli
  3. Run cargo run -- generate entity --database-url postgres://root:root@localhost/db --expanded-format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

sea-orm-cli generate --expanded-format panic when postgres table contains enum type
2 participants