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基础文件.任何帮助是极大的赞赏.