Postgresql – Foreign key is not correct after flywaydb migration in postgress and springboot
I have 4 tenants - tenant1,tenant2,tenant3,tenant4,tenant5 and i am using spring boot, postgress database and flywaydb Migration to database version and auto create when new tenant registered. Base code : https://github.com/AnarSultanov/examples/tree/master/schema-based-multi-tenancy https://sultanov.dev/blog/schema-based-multi-tenancy-with-spring-data/ in my sql scripts i have added foreign…