Answers.Body: <p>xml/version.xml</p>
  <p>In the database it's in civicrm_domain.</p>
  <p>It isn't cms-specific.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-29T17:23:13.887Z
Answers.Text: Thanks, does that mean that civicrm-version.php is no longer relevant?
Answers.UserDisplayName: Dave T
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-29T17:36:56.160Z
Answers.Text: It's relevant in that you shouldn't delete civicrm-version.php, but the version itself isn't stored in that file.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-29T16:41:03.553Z
Answers.LastActivityDate: 2022-03-29T16:41:03.553Z
Answers.UserDisplayName: Demerit
Body: <p>An upgrade of CiviCRM (D9) has resulted in this error/warning</p>
  <p>&quot;Your database is marked with an unexpected version number: 5.45.4. The v5.45.3 codebase may not be compatible with your database state. You will need to determine the correct version corresponding to your current database state. You may want to revert to the codebase you were using until you resolve this problem.
  OR if this is a manual install from git, you might want to fix civicrm-version.php file.&quot;</p>
  <p>The civicrm-version.php file does not show current or any specific version. Has this location been deprecated for D9?   Is there another location that should be reviewed?</p>
  <p>This issue (<a href="https://lab.civicrm.org/dev/drupal/-/issues/10" rel="nofollow noreferrer">https://lab.civicrm.org/dev/drupal/-/issues/10</a>) suggests that the civicrm-version.php file should include:</p>
  <p><a href="https://i.sstatic.net/9ms3j.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9ms3j.png" alt="enter image description here" /></a></p>
  <p>Is that still accurate or is there another location?</p>
  
Tags: <version>
Title: Where is the current version of CiviCRM stored for D8/D9 instances?
ThreadText: # Where is the current version of CiviCRM stored for D8/D9 instances?
  
  (Asked by: username_0 on 2022-03-29)
  
  An upgrade of CiviCRM (D9) has resulted in this error/warning
  
  "Your database is marked with an unexpected version number: 5.45.4. The v5.45.3 codebase may not be compatible with your database state. You will need to determine the correct version corresponding to your current database state. You may want to revert to the codebase you were using until you resolve this problem.
  OR if this is a manual install from git, you might want to fix civicrm-version.php file."
  
  The civicrm-version.php file does not show current or any specific version. Has this location been deprecated for D9? Is there another location that should be reviewed?
  
  This issue (<https://lab.civicrm.org/dev/drupal/-/issues/10>) suggests that the civicrm-version.php file should include:
  
  [![enter image description here](https://i.sstatic.net/9ms3j.png)](https://i.sstatic.net/9ms3j.png)
  
  Is that still accurate or is there another location?
  
  **Tags:** version
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-03-29. Score: 1
  
  xml/version.xml
  
  In the database it's in civicrm\_domain.
  
  It isn't cms-specific.
  
  > **Comments:**
  > **username_0**: Thanks, does that mean that civicrm-version.php is no longer relevant?  
  > **username_1**: It's relevant in that you shouldn't delete civicrm-version.php, but the version itself isn't stored in that file.  
  
  ---
  
  