[英]Deploy Typo3 database changes
I wonder if there is a good way of deploying database changes made on a typo3 website (on dev) to a live website? 我想知道是否有一种很好的方法可以将在typo3网站(在开发中)上进行的数据库更改部署到实时网站?
In Magento for example there are folders containg sql install statements (for the structure, new tables etc.) and data install scripts (inserting data into the tables). 例如,在Magento中,有一些文件夹包含sql安装语句(用于结构,新表等)和数据安装脚本(将数据插入表中)。 These scripts are automatically executed when deployed to live. 部署到live时会自动执行这些脚本。
Good ways of getting rid of manual database adaptions are welcome. 欢迎摆脱手动数据库适应的好方法。
Thanks! 谢谢!
TYPO3 extensions have their ext_tables.sql
files which define the database structure they need. TYPO3扩展具有ext_tables.sql
文件,用于定义所需的数据库结构。
When installing the extension, the necessary database structure changes are made by the TYPO3 extension manager. 安装扩展时,TYPO3扩展管理器会进行必要的数据库结构更改。 You can also apply the changes yourself by using the install tool -> database update. 您还可以使用安装工具 - >数据库更新自行应用更改。
So as long as your extensions have the correct table definitions, you're fine and can rely on TYPO3 to update the actual database. 因此,只要您的扩展具有正确的表定义,您就可以了,并且可以依赖TYPO3来更新实际的数据库。
cweiske解释得很好,对于普通的管理员来说,足以知道Install Tool具有Database Analyzer> Compare功能,专用于处理数据库模式差异。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.