Open abstract-thinking opened 1 year ago
@abstract-thinking type bigint with extra auto_increment to bigserial
means "convert bigint from MySQL to bigserial in Postgres if there is extra auto_increment as default value"
You need to make own rules to change it: https://pgloader.readthedocs.io/en/v3.6.7/ref/mysql.html#mysql-database-casting-rules
Hi @dimitri,
The first time I made a migration from MySQL to PostgreSQL and using pgloader 3.6.7.
After running the command pgloader mysql://mysql_user:mysql_password@localhost/database
postgresql://postgresql_user:postgresql_pwassword@localhost/database
By a deeper look I confused.
First I recognized that the MySQL table id is chagned to bigint.
By reading the default rules I was expecting bigserial.
type bigint with extra auto_increment to bigserial
Further the
bigint(20)
is migrated to thenumeric
postgresql data type, which produces the problemNot really sure by reading the rules what I should expecte here. At least I would expect a bigint to be constant with the primary key casting.
Is there a way how I can solve this issue?
Thanks, Markus