开发者

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

开发者 https://www.devze.com 2023-01-14 18:33 出处:网络
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 ?

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 ? ?


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
0

精彩评论

暂无评论...
验证码 换一张
取 消