I altered my models in node and on starting the application, the migration does not alter the postgresql table. I can see that the query CREATE TABLE IF NOT EXISTS
is run on the table, but I guess it does not check whether a column has been added/removed. How can I do it through node so that such changes are automatically handled and migrated by my application? Currently I'm calling the sync()
function to migrate.
let membres = await Membership.sync();