Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration fixes #265

Open
wants to merge 2 commits into
base: 5.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backend/setup/mysql-to-postgresql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down