Schema migrations
Tosca stores project data in a database, which serves as your common repository. This database has a specific data structure, or "schema". If the schema changes between Tosca versions, you need to migrate. This topic takes you through the schema migration process.
![]() |
We haven't changed the schema version since Tosca 12.3. So, if you're upgrading from version 12.3 or newer, you can safely ignore this topic during your upgrade to 2024.2. |
Important considerations
When it comes to schema migrations, keep these things in mind:
-
You only need to migrate multi-user environments. In single-user environments, Tosca automatically migrates when you open the workspace for the first time after the upgrade.
-
You should always test the migration on your test database first. Only migrate your productive database if you successfully migrated your test database.
-
You can't revert a migration. Migrated schemas, Modules, and TestCases are not backward compatible. If you migrate and then want to revert to an earlier schema, you have to restore your backup.
Migration process
You can migrate manually or, if you use the Tosca Administration Console, directly in the console.
Please choose your use case:

If you use the Tosca Administration Console, you can trigger the migration directly in the console.
Prepare for the migration
Since the console is part of Tosca Server, you need to perform these preparatory steps:
-
Install Tosca2024.2 on the server machine.
Perform the migration
For detailed instructions, check out "Migrate projects with the Tosca Administration Console".

If you don't use the console, you have to migrate your schema manually.
Prepare for the migration
To prepare for the manual migration, perform these actions:
-
Get a connection string to your repository database. The user in this connection string must have ALTER, CREATE, and DELETE rights to create tables, delete indexes, and create new indexes.
-
Ask all users to check in their local changes. Migrations run on the repository version of all objects. If you migrate objects that are checked out by other users, you lose all local changes.
-
Create a backup of your database. If the migration fails, you must load the backup before you can make another migration attempt.
Perform the migration
To migrate a schema, follow these steps:
-
Go to %COMMANDER_HOME%.
-
Open the Command Prompt window and run the following command:
DbRepositorySchemaMigrator.exe "<database type>" "[schema name]" "[tablespace name]" "<connection string>"
-
Replace <database type> with the database type of your repository: Oracle, MS SQL Server, DB2, or SQLite.
-
Optionally, replace [schema name] with the database schema name.
-
Optionally, replace [tablespace name] with the tablespace name of your database. The name of the tablespace depends on which database you use: Tablespace (DB2), Userspace (Oracle), FileGroup (MS SQL).
-
Replace <connection string> with a connection string to connect to your repository database. For SQLite repositories, enter the absolute path to the CommonRepository.db file.
-
Optionally, add -s at the end of your command to perform the migration in silent mode, without user interaction.
-
![]() |
Here are two examples for migration commands.
|
Once it's done, DbRepositorySchemaMigrator.exe displays a message that indicates whether the migration was successful or not. For detailed migration results, check the log file SchemaMigration_<File name>.txt, located at %APPDATA%\TRICENTIS\TOSCA TestSuite\7.0.0\Temp\TCTempLog.
You can now open your multi-user workspaces in Tosca. Tosca migrates workspaces when you open them for the first time after the schema migration.
List of schema versions
This table lists Tosca Commander versions and their respective schema versions:
ToscaCommander version |
Schema version common repository |
2024.2 LTS |
12030000 |
2024.1 LTS |
12030000 |
2023.2 LTS |
12030000 |
2023.1 LTS |
12030000 |
16.0 LTS |
12030000 |
15.2 LTS |
12030000 |
15.1 STS |
12030000 |
15.0 LTS |
12030000 |
14.3 STS |
12030000 |
14.2 LTS |
12030000 |
14.1 STS |
12030000 |
14.0 |
12030000 |
13.4 |
12030000 |
13.3 |
12030000 |
13.2 |
12030000 |
13.1 |
12030000 |
13.0 |
12030000 |
12.3 |
12030000 |
12.2 |
11010002 |
12.1 |
11010002 |
12.0 |
11010002 |