gpt4 book ai didi

php - --dump-sql 做什么?

转载 作者:太空宇宙 更新时间:2023-11-03 11:02:23 24 4
gpt4 key购买 nike

我在 CodeIgniter 中使用 Doctrine。我通常使用 orm:schema-tool:update --force 更新数据库,这使得数据库与我的模型相同。现在我有一些敏感的更新,我不想对我的数据库造成任何损害。

我读了this answer .似乎 --dump-sql 返回了更新表所需的 SQL,问题是它实际上也更新了表吗?

最佳答案

它不会更新表格。

--dump-sql 只打印 SQL 而 --force 执行 SQL 而不打印它。

--dump-sql 帮助您了解 --force 将要做什么。

关于php - --dump-sql 做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14688652/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com