I’m using Sequelize in a node.js app to talk to a PostgreSQL database.
I made an error in the schema for one of my tables - I defined a key as a string but I’d like it to be an integer. There are a few rows of data in the table now.
I know I need to use a migration to fix this, but I’m unclear on the best way to generate and run it to do what I want, and ideally avoid losing any data.
I’ve had a look at Sequelize’s docs but they don’t mention anything particular
What’s the best way to do this?