WingLongitude / lontra-harvester

Lontra is a tool used as a Harvester to ingest biodiversity data
MIT License
1 stars 3 forks source link

Allow MoveToPublicSchema job to be column order independent #5

Closed cgendreau closed 9 years ago

cgendreau commented 10 years ago

Currently, MoveToPublicSchema job is transferring data from buffer to public schema with an INSERT from SELECT * .

This is very risky when the order of the columns are not the same between the 2 schemas. To fix that, we should explicitly add the name of columns to the INSERT and the SELECT statements.