Question on Fixtures

Hi, I have 2 questions about fixtures.

  1. If we have Child Doctype, should we export both the Parent and Child Doctype’s fixtures ?
    Let’s say I have Parent Doctype A contains a bunch of Children Doctype B.
    If I export both fixtures, it will return errors ‘Duplicate entry’ when imported.
    If I don’t include Children Doctype, some can be lost because not all Children Record has a parent

  2. Fixtures got imported every time we run frappe --latest. Does it know how to merge and update ? Or everytime it flush the data and reapply what’s inside the fixtures ?

If your fixtures are re-imported, all children will be deleted and re-applied (i think!)

Re-importing will be done based on timestamp.