Moving from pg9 to pg12, the column order for the createTableQuery is now in the wrong order. This is probably due to the fact that array_agg does not actually guarantee an order unless you use an inner ORDER BY, where if you use an ORDER BY outside of it, the docs just say that it'll probably work.
Moving from pg9 to pg12, the column order for the createTableQuery is now in the wrong order. This is probably due to the fact that array_agg does not actually guarantee an order unless you use an inner ORDER BY, where if you use an ORDER BY outside of it, the docs just say that it'll probably work.
Fixes #79