Sequelize automatically adds a createdAt and a updatedAt field for every model, both of which are set to type DATE by default. I want to update this to DATE(6) to be able to make use of millisecond timestamps. I have two questions regarding this:
- How do I go about creating a migration that enables this?
- If I update the datatype to
DATE(6), will the existing database records be unaffected and will only the newer ones have the millisecond timestamp?