小编Rob*_*ita的帖子

Getting the SQL from a Doctrine Migration

I have been researching a way to get the SQL statements that are built by a generated Migration file. These extend Doctrine_Migration_Base. Essentially I would like to save the SQL as change scripts.

执行路径将我引导到Doctrine_Export,它具有构建SQL语句并执行它们的方法.我发现没有办法要求他们.Doctrine_Export中的导出方法仅在Doctrine_Record模型上运行,而不在迁移脚本上运行.

从命令行'./doctrine migrate version#'开始:

  • Doctrine_Cli ::运行(CMD)
  • Doctrine_Task_Migrate :: setArguments(参数)
  • Doctrine_Task_Migrate ::执行()
  • Doctrine_Migration ::迁移(至)
  • Doctrine_Migration_Process :: Doctrine_Export ::各种使用sql等效的create,drop,alter方法.

有没有人解决过这个问题?我真的不想改变Doctrine基础文件.任何帮助是极大的赞赏.

sql migration doctrine

5
推荐指数
1
解决办法
1886
查看次数

标签 统计

doctrine ×1

migration ×1

sql ×1