Skip to content

Conversation

KrymmyEM
Copy link

Inspectdb problems #421

  • Adding enum data types
    • PostgreSQL
    • MySQL
  • Little fix problem with field naming
  • Fix problem with fields name mismatch
  • Fix problem with table name mismatch
  • Since tortoise-orm assumes "id" as a primary key, the problem of unique fields in postgresql is fixed.

Copy link
Contributor

@waketzheng waketzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run make style and make check to follow code style.

@KrymmyEM KrymmyEM requested a review from waketzheng March 2, 2025 15:37
@waketzheng
Copy link
Contributor

Would be great if you can add some unittests.

@KrymmyEM
Copy link
Author

How I can add some unittests for server type DBMS?

@waketzheng
Copy link
Contributor

How I can add some unittests for server type DBMS?

Something like this: https://github.com/tortoise/aerich/tree/dev/tests/test_inspectdb.py

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