diff --git a/backend/setup/mysql-to-postgresql.rst b/backend/setup/mysql-to-postgresql.rst index 59bf3f020..0e890131f 100644 --- a/backend/setup/mysql-to-postgresql.rst +++ b/backend/setup/mysql-to-postgresql.rst @@ -29,8 +29,10 @@ is a sample migration config that can be used for this process: LOAD DATABASE FROM mysql://dbuser:dbpass@localhost:3306/old_db_name INTO postgresql://dbuser:dbpass@localhost:5432/new_db_name + WITH prefetch rows = 10000 alter schema 'old_db_name' rename to 'public' CAST type datetime to timestamp /*(DC2Type:datetime)*/ drop default drop not null using zero-dates-to-null, + type int with extra auto_increment to serial drop typemod, type int with extra auto_increment when (< precision 12) to serial drop typemod, type int with extra auto_increment when (>= 12 precision) to bigserial drop typemod, type int when (< precision 12) to int drop typemod,