How to make 'symfony doctrine:build-sql' task generate 'DROP' statments?

本秂侑毒 提交于 2020-01-06 03:39:28

问题


Is there a way to make symfony doctrine:build-sql task generate DROP statments before CREATE TABLE ones as it symfony propel:build-sql does ? ?


回答1:


There is no such possibility, but you can run the doctrine:drop-db task before inserting the the SQL. A regular way with doctrine is:

> symfony doctrine:build-sql
> symfony doctrine:drop-db
> symfony doctrine:insert-sql


来源:https://stackoverflow.com/questions/3626234/how-to-make-symfony-doctrinebuild-sql-task-generate-drop-statments

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!