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 1 commit
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
Prev Previous commit
Ensure sequences are created for signed int primary keys
Credit goes to @AdamJHall for this fix
Jim O'Halloran committed Aug 22, 2023
commit c039c5d9fb91405bd61467087d46ef5907e667c3
1 change: 1 addition & 0 deletions backend/setup/mysql-to-postgresql.rst
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ is a sample migration config that can be used for this process:
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,