How to migrate SonarQube 6.7 from MySQL to postgre

2019-06-07 10:45发布

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条回答
趁早两清
2楼-- · 2019-06-07 11:22

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).

查看更多
登录 后发表回答