SQLite Unknown column type timestamp
Closed this issue · 2 comments
albertcito commented
Unknown column type: timestamp table name: user column name: created_at
Error occurred in typeorm-model-generator.
typeorm-model-generator@0.4.3 node@v12.16.3
Kononnable commented
What is type of this column(shown in some gui/from statements which creates it)?
I don't see timestamp
in types supported by sqlite databases in typeorm https://github.com/typeorm/typeorm/blob/f2ba9012fe4e851bc667dfdfedc3fd4af665d52b/src/driver/sqlite-abstract/AbstractSqliteDriver.ts#L77-L109
albertcito commented
ouch, you are right. It was my mistake to write timestamp instead datetime in my migrations). I was testing the library trying re-create the DB.