> For the complete documentation index, see [llms.txt](https://prosbcdocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prosbcdocs.telcobridges.com/telecom-references/apis-and-integration/migrate-current-database.md).

# Migrate current database

#### ***Applies to versions: v2.7, v2.8, v2.9, v2.10, v3.0***

**Note: This checkbox will be available starting from v2.7.148 in Activate package section when doing a major upgrade from web portal**.

### Select **Migrate current database** in the Activate package section

![Migrate current database](https://docs.telcobridges.com/w/images/e/eb/Migrate_current_database.png)

### **Migrate current database** clarification

* When upgrading to the next major software version, and this next major software version had not been upgraded before (for example, 2.7.148 -> 2.8.132, and 2.8.132 had not been upgraded for this system before), it does not matter to check on this **Migrate current database** checkbox or not. It it recommended to check and enable it for simplicity.
* If from above example, 2.8.132 had been upgraded before for this system, and some reason user had downgraded again to current lower major software 2.7.148, then user will have the choice when doing a major upgrade again whether to discard or keep the change made in 2.7.148 (while in 2.7.148 after downgraded from 2.8.132), and say, to 2.8.132 (as example from above, can be other higher versions) with previous database of 2.7.148 that containing the previous configuration after completing upgrade to 2.8.132. Since discarding any change while in one software version is uncommon, it is recommended to check on this **Migrate current database** checkbox to migrate/clone the current database to next major softwar version keeping the change made in current software version. If **Migrate current database** is not checked, then a fresh database in 2.8.132 will be built.
* For downgrade, same concept as upgrade above that database will be cloned back to lower version database. But since, higher database structure may be different from lower version database structure perhaps with more fields, then when checked and downgrade, some data may be lost. So, when doing downgrade, it is recommended not to check this **Migrate current database**.
* Note that when doing a major upgrade, the current database of current software version will be backup/untouched, in case when there is a need to fall back to this current version at original stage.
* Prior to version 2.8, database is named as toolpack\_0 (for example for current system version if it is 2.7). For 2.8 and above, database is named as toolpack\_2\_8, toolpack\_2\_9, accordingly.

### **Migrate current database** diagrams illustration

#### No change at A at original software version 2.8, Migrate current database is not relevant (check for simplicity)

![Mirgate current database no change at A](https://docs.telcobridges.com/w/images/f/f9/Mirgate_current_database_-_no_change_at_A.png)

#### A changed to B at original software version 2.8, different Migrate current database scenarios

![Mirgate current database A changed to B](https://docs.telcobridges.com/w/images/d/d2/Mirgate_current_database_-_A_changed_to_B.png)

#### Changed to B at upgraded software version 2.9, no Migrate current database checked

![Mirgate current database change to B at upgrade](https://docs.telcobridges.com/w/images/f/f6/Mirgate_current_database_-_change_to_B_at_upgrade.png)

### Useful Links

[Database backup](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/configuration/tmedia-tdev-and-tsig-web-portal-3-0-system-settings/README.md#database-backup)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://prosbcdocs.telcobridges.com/telecom-references/apis-and-integration/migrate-current-database.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
