Skip to content

Commit

Permalink
inspectdb support DATE. (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
long2ice committed Dec 8, 2021
1 parent fac00d4 commit 8b5cf6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
1. Run `aerich init -t config.TORTOISE_ORM`.
2. Remove `aerich.ini`.
- Remove `pydantic` dependency. (#198)
- `inspectdb` support `DATE`. (#215)

## 0.5

Expand Down
1 change: 1 addition & 0 deletions aerich/inspectdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class InspectDb:
"TEXT": " {field} = fields.TextField({null}{default}{comment})",
"DATETIME": " {field} = fields.DatetimeField({null}{default}{comment})",
"FLOAT": " {field} = fields.FloatField({null}{default}{comment})",
"DATE": " {field} = fields.DateField({null}{default}{comment})",
}

def __init__(self, conn: BaseDBAsyncClient, tables: Optional[List[str]] = None):
Expand Down

0 comments on commit 8b5cf6f

Please sign in to comment.