azavea / osmesa

OSMesa is an OpenStreetMap processing stack based on GeoTrellis and Apache Spark
Apache License 2.0
79 stars 26 forks source link

Add foreign keys and indices to postgresql schema. #198

Closed guidorice closed 3 years ago

guidorice commented 3 years ago

This PR modifies the PG database schema.

Known issues

alter table changesets
add constraint changesets_users_id_fk
foreign key (user_id) references users;

The missing users issue should be resolved before changing the table create statement here.

Please beware because I have not done any integration testing and do not really have any way to see what side effects it will cause. 😄

@CloudNiner I marked this as a Draft PR, because of the user_id concern.

guidorice commented 3 years ago

@CloudNiner thanks for the assist- this is ready for review now.