Implement new functionality from https://github.com/osm2pgsql-dev/osm2pgsql/pull/2170 to define unique indexes in the Lua. While I prefer the semantics hinted through a primary key, there's no functional difference.
Through this change I noticed a number of tables were missing PKs in the prior method, so overall this should enforce slightly better data quality.
Implement new functionality from https://github.com/osm2pgsql-dev/osm2pgsql/pull/2170 to define unique indexes in the Lua. While I prefer the semantics hinted through a primary key, there's no functional difference.
Through this change I noticed a number of tables were missing PKs in the prior method, so overall this should enforce slightly better data quality.