Transferring single instance tenants to a multi tenancy environment will be a challenging task. One option would be to import the database and run a transformation script in MongoDB. The following tasks may be required:
Restored single tenancy database to MongoDB
Update _tenantId in the following tables:
articles
blocks
contentObjects
courses
tags
Update createdBy objectId in the following tables:
articles
assets
blocks
components
contentObjects
courseassets
courses
tags
Update _componentTypeId in the following tables matched to the mapped _componentTypeId
components
Update _contentTypeId in assets with the mapped plugin Id ?
Update _enabledExtensions in the configs collection with ObjectId of the mapped extensions
Drop the following collections that are not required for a tenancy:
clipboards
componenttypes
extensiontypes
menutypes
policies
roles
sessions
tenants
themetypes
userpasswordresets
users
Transferring single instance tenants to a multi tenancy environment will be a challenging task. One option would be to import the database and run a transformation script in MongoDB. The following tasks may be required:
Restored single tenancy database to MongoDB
Update _tenantId in the following tables: articles blocks contentObjects courses tags
Update createdBy objectId in the following tables: articles assets blocks components contentObjects courseassets courses tags
Update _componentTypeId in the following tables matched to the mapped _componentTypeId components
Update _contentTypeId in assets with the mapped plugin Id ?
Update _enabledExtensions in the configs collection with ObjectId of the mapped extensions
Drop the following collections that are not required for a tenancy: clipboards componenttypes extensiontypes menutypes policies roles sessions tenants themetypes userpasswordresets users
Rename the database with new tenant ObjectId