Knex and MySQL datetime field precision

Viewed 1706

When using knex in a node application is there any way to set a MySQL datetime column as datetime(3) or datetime(6), or better yet set a default for all datetime columns including .timestamps?

Right now it looks like I'm getting the milliseconds truncated when I insert into the DB and then retrieve.

Thanks!

1 Answers
Related