【发布时间】:2018-11-11 19:48:58
【问题描述】:
我已经开始重构 ext:crawler 以使其与 TYPO3 9LTS 兼容。
目前我们有一个仅基于数据库表 + TCA 配置的域模型:
https://github.com/AOEpeople/crawler/blob/master/ext_tables.sql#L48 https://github.com/AOEpeople/crawler/blob/master/Configuration/TCA/tx_crawler_configuration.php
我想为配置添加一个常规的域模型和存储库,以便从 TYPO3 Core 的代码中受益更多。
我目前的问题是:
我不知道如何将数据从现有的表tx_crawler_configuration 迁移到新的tx_crawler_domain_model_configuration 而不会使用户丢失任何数据或需要进行任何手动工作。
我还没有找到有关此主题的任何内容。我知道我可以“使用外国数据源”,但它不是外国数据,所以不确定这是最好的方法。 https://docs.typo3.org/typo3cms/ExtbaseFluidBook/6-Persistence/4-use-foreign-data-sources.html
感谢您的意见,谢谢。
【问题讨论】:
标签: php typo3 database-migration typo3-extensions typo3-9.x