#Missing relations inside `directus_relations` table (Existing DB)

2 messages · Page 1 of 1 (latest)

urban lichen
#

Hi !
I setup a Directus instance on an already existing database, everything is working fine except that it seems to not have picked up relations and put it inside directus_relations, so when requesting /relations api endpoint, the meta field is empty. (I'm using a extension to generate types, and it throws an error because of that).

Can we force Directus to "populate" the database with the correct data about relations ?
What seems weird is that I can change the "On suppresion action" and it seems to have no problem with it (maybe it's changing/reading the SQL properties of the column directly)
Or do I need to add relations manually inside directus_relations ?

livid joltBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)