问题
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