tortoise / aerich

A database migrations tool for TortoiseORM, ready to production.
https://github.com/tortoise/aerich
Apache License 2.0
808 stars 91 forks source link

aerich giving error on inspectdb #215

Closed AmmarAhmadKhan closed 2 years ago

AmmarAhmadKhan commented 2 years ago

aerich is giving error while inspectdb is run for table having date field.

Traceback (most recent call last): ....... . . . . File "......\venv\lib\site-packages\aerich\inspectdb.py", line 75, in inspect field = self._field_template_mapping[column.data_type].format( KeyError: 'DATE'

long2ice commented 2 years ago

Fixed