I am using Doctrine with CodeIgniter. I usually update the database with orm:schema-tool:update --force, which makes the database the same as my models. Now I have some sensitive updates and I dont want make any damage to my DB.
I read this answer. It seems like --dump-sql returns the SQL needed to update the tables, does it also actually update the tables is the question?
It does not update the table.
--dump-sqljust print the SQL and--forceexecute the SQL without printing it.--dump-sqlhelps you to see what--forceis going to do exactly.