# Upgrading

## Upgrading to MDID 3.7 from earlier versions of MDID 3

Due to the new method of installing MDID 3.6 and later it is strongly recommended to perform a new installation and then put the database and images in place.

* Follow the installation steps outlined for your operating system
* Change the database settings in `config/settings.py` to point to your existing database
* Run `mdid migrate` to migrate the database
* Run `mdid solr reindex` to refresh the full-text index

## Upgrading from MDID2

* Perform a new installation with a blank database.
* Copy the `config.xml` file from your MDID2 installation to a place accessible from the new installation.
* If necessary, adjust the `<database>` section in the `config.xml` file so that it can be used to connect to the database from the new installation.
* Run `mdid mdid2migrate path/to/config.xml`
* Copy the full-size images from the MDID2 installation to a place accessible to the new installation.
* In MDID3, under Management>Manage Storages, fix the paths to the different storage directories.
* Run a full re-index with `mdid solr reindex`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.mdid.org/upgrading.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
