Answers.Body: <p>Maybe you are looking for the postInstall hook? <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall/</a></p>
  <p>It is written in the <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall/#example" rel="nofollow noreferrer">example section</a>:</p>
  <p><code>Another potential use is to act on settings or managed entities that are created during the installation (but not necessarily in order that you want them to be created)</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-12T15:36:44.263Z
Answers.LastActivityDate: 2021-07-12T15:36:44.263Z
Answers.UserDisplayName: akosgarai
Body: <p>How can I set the entity install order?
  now the new table refers to a nonexistent one because the new table has not yet been created</p>
  
Tags: <extension>
Title: DB set entity install priority
ThreadText: # DB set entity install priority
  
  (Asked by: username_0 on 2021-07-12)
  
  How can I set the entity install order?
  now the new table refers to a nonexistent one because the new table has not yet been created
  
  **Tags:** extension
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-07-12. Score: 1
  
  Maybe you are looking for the postInstall hook? <https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall/>
  
  It is written in the [example section](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall/#example):
  
  `Another potential use is to act on settings or managed entities that are created during the installation (but not necessarily in order that you want them to be created)`
  
  
  ---
  
  