简体   繁体   English

使用Propel时可以忽略现有表吗?

[英]Is there a way to ignore existing tables when using Propel?

I am using Propel for PHP and I want to create a diff task to create new tables. 我正在使用Propel for PHP,并且想创建一个diff任务来创建新表。

The issue is this is inside an existing database with tables already existing. 问题是这是在具有表已存在的现有数据库中。 I don't want these tables to be managed by Propel. 我不希望这些表由Propel管理。 When doing the diff task, it looks at these tables. 执行diff任务时,它会查看这些表。 Anyway to ignore these tables during the diff process? 无论如何在差异过程中忽略这些表?

No, migration tasks are quite dumb at the moment. 不,目前的迁移任务非常愚蠢。 That's why you always need to review generated diff classes. 这就是为什么您始终需要检查生成的差异类的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM