Editorial question43.3K views919 votes0 answers620 following
AI-generatedPM2 deploy revert does not roll back database schema after code rollback
When a deployment introduces a database schema change, the expectation is that rolling back the application code with pm2 deploy revert also returns the database to its previous compatible state. However, the revert command only restores the released source code and Node modules; it does not automatically invoke any migration down scripts, and there is no do