How to migrate SonarQube 6.7 from MySQL to postgresql

六月ゝ 毕业季﹏ 提交于 2020-02-02 13:30:31

问题


We need to migrate SonarQube from MySQL to posgresql.

To achieve this, I would export from MySQL and import to postgresql. This I can handle, there are more than enough manuals for this and also I'm OK with database magic ;)

However, my question is: would that work for SonarQube in general? Does SonarQube use some database-specific magic that would eliminate the ability to migrate?

Steffen


回答1:


Good news : there is no specific database magic used in SonarQube.

However, note that some column have different types due to limitation on some database (for instance, the boolean type).

So if you want to migrate from MySQL to Postgresql, I highly suggest to let SonarQube create the schema first (and with same version of SonarQube than the one used with MySQL) and then do the migration, but you may need to adjust some migration for some of the column (again probably for boolean type).



来源:https://stackoverflow.com/questions/47412263/how-to-migrate-sonarqube-6-7-from-mysql-to-postgresql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!