iver-wharf / wharf-api

Wharf backend written in Go
MIT License
1 stars 0 forks source link

Added back foreign key constrain-less migration #161

Closed applejag closed 2 years ago

applejag commented 2 years ago

Summary

Motivation

I was comparing v5.0.0 and v5.1.0 in v5.0.0...v5.1.0#migrations.go and saw that one key difference is that I in #144 removed the double-migration, first without foreign key constraints, and then again with them.

It turns out our foreign key constraints has some circular dependencies. Fixing the database relations is postponed into #146. This PR is a band-aid fix.

I've now properly tested this in docker-compose using Postgres, as I should've done before.

Closes #160