No need to switch to `mysql` when using the migration script

pull/7285/head
Cyril Rohr 6 years ago committed by GitHub
parent ebeb4ebcf6
commit 76ae5e85ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      docs/operations/migrating/packaged/postgresql-migration.md

@ -16,7 +16,6 @@ This guide should leave you with a set of archives that you should manually move
- **Repositories**: svn- and git-<timestamp>.tar.gz - **Repositories**: svn- and git-<timestamp>.tar.gz
## Installation of pgloader ## Installation of pgloader
We ship a custom version of pgloader (named `pgloader-ccl`), which embeds some memory optimizations useful when you are migrating from a large MySQL database. This also allows us to provide a unified migration experience for all installation types. This package is available for all the currently supported distributions at https://packager.io/gh/opf/pgloader-ccl. We ship a custom version of pgloader (named `pgloader-ccl`), which embeds some memory optimizations useful when you are migrating from a large MySQL database. This also allows us to provide a unified migration experience for all installation types. This package is available for all the currently supported distributions at https://packager.io/gh/opf/pgloader-ccl.
@ -124,11 +123,6 @@ openproject config:get DATABASE_URL
``` ```
**Please note:** Ensure that the URL starts with `mysql://` , not with ` mysql2://` !
## Configuring OpenProject to use the PostgreSQL database ## Configuring OpenProject to use the PostgreSQL database
Form the `DATABASE_URL` string to match your entered password and pass it to the openproject configuration. The following command also exports it to the current shell as `POSTGRES_DATABASE_URL` Form the `DATABASE_URL` string to match your entered password and pass it to the openproject configuration. The following command also exports it to the current shell as `POSTGRES_DATABASE_URL`
@ -139,11 +133,9 @@ export POSTGRES_DATABASE_URL="postgresql://openproject:<PASSWORD>@localhost/open
``` ```
**Please note:** Replace `<PASSWORD>` with the password you provided above. If you used any special characters, [check whether they need to be percent-encoded](https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding) for the database URL. **Please note:** Replace `<PASSWORD>` with the password you provided above. If you used any special characters, [check whether they need to be percent-encoded](https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding) for the database URL.
## Migrating the database ## Migrating the database
You are now ready to migrate from MySQL to PostgreSQL. The OpenProject packages embed a migration script that can be launched as follows: You are now ready to migrate from MySQL to PostgreSQL. The OpenProject packages embed a migration script that can be launched as follows:

Loading…
Cancel
Save