Database migrations in Joomla(Joomla 中的数据库迁移)
问题描述
有没有办法在 Joomla 中使用数据库迁移?我正在寻找一种类似于 Rails 或 Symfony 中的机制.
Is there any way of using database migrations with Joomla? I'm looking for a mechanism like the one found in Rails or Symfony.
每当我的模型发生变化时,我都想对数据库应用更改,例如添加一列,创建新关系,删除一些表,...
I would like to apply changes to the database whenever my model changes, e.g. adding a column, creating a new relationship, dropping some tables,...
在这个问题中,接受的答案似乎是一个很酷的选择,但我不知道是否有特定于 Joomla 的东西.
In this question, the accepted answer seems like a very cool option, but I don't know if there is something specific to Joomla.
谢谢!
推荐答案
如果你想更新你自己组件的数据库架构,你可以参考以下线程:http://forum.joomla.org/viewtopic.php?p=1607199
If you want to update your own component's DB schema you can refer to the following thread: http://forum.joomla.org/viewtopic.php?p=1607199
如果您只需要没有组件的迁移,请查看这些独立的解决方案:
If you need just migrations without components, check these standalone solutions:
- https://github.com/davejkiger/mysql-php-migrations
- https://github.com/Billiam/MySQL-PHP-AutoMigrations
这篇关于Joomla 中的数据库迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Joomla 中的数据库迁移


基础教程推荐
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- 在多维数组中查找最大值 2021-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01