If you use an Oracle or Microsoft® SQL database system, provide a second database for the current migration in parallel to the productive database schema. After data migration, the migrated data overwrites the productive database schema. Since the migration database schema is not deleted automatically after the migration, manually remove it. Then restore the tenant data to the new version.
If you use a PostgreSQL database system, the migration database schema is automatically created, and removed after the migration.