dimitri / pgloader

Migrate to PostgreSQL in a single command!
http://pgloader.io
Other
5.45k stars 548 forks source link

Empty AUTOINCREMENT postresql sequence if there is no rows in a sqlite table #1517

Open thenik opened 1 year ago

thenik commented 1 year ago

sample table in sqlite with autoincrement key image

how it was migrated to pstgresql image

and here is an error that I got from the code image

23502: null value in column "id" of relation "translations" violates not-null constraint

Any ideas how to adjust it via pgloader ? Thanks!