Refresh database

Looked at great example I've got a question: Is there any way to refresh database (create, alter tables, etc) by models definitions, like $connection->updateDatabase()? Or only way is using createTable, alterTable functions ( with manual check for diff?


There is no an automatic way to do that, but I think the migrations code on devtools could be reused to implement something similar to the idea you have.