Skip Navigation

[Resolved] Legacy Migration on Multisite

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user would like to know if the migration of legacy relationships on a multisite will be performed for all subsites once.

Solution:
Mutlisite subsites only share a few tables, all relevant tables for relationships migration are per site. The migration will then be executed per site.

Relevant Documentation:
https://wordpress.org/support/article/glossary/#multisite

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 4 replies, has 2 voices.

Last updated by mikeD-15 4 years, 11 months ago.

Assisted by: Jamal.

Author
Posts
#1564851

We're working on a client site (they have their own license so it's not in our bundle 🙂 ) that was setup with some fairly complex relationships a few years ago. It needs to be migrated to the new version in order to meet some new fun requirements... however there are other sites on the network that are also using relationships. If we migrate one site, will it impact the rest? Or are we safe to run the migration on the one site without fear of blowing up the other sites?

Thanks for your help!

#1565369

Hello and thank you for contacting the Toolset support.

By migration, you mean updating Toolset Plugins to the latest releases, right?
In this case, I would say that all sites on a multisite install share the same code(WordPress+themes+plugins), If you update any, it gets updated for all sites.
https://wordpress.org/support/article/glossary/#multisite

If you need a different version of Toolset Plugins on one site and keep old versions for other sites on a multisite, I am afraid, you have to migrate it into a new installation and update plugins on it.

Before taking any step, I suggest:
*** Please make a FULL BACKUP of your database and website.***

With Types 3.0 release (before almost one and half years ago) we implemented new many-to-many relationships and added a number of new features. The current version of Types plugin is 3.3.10 and I yet do not know what is the current Toolset plugin version installed with your multisite install.

In addition to that, if you have added any custom code related to post-relationship with your current site using legacy post-relationship, you need to convert it to a new-relationship. Please carefully check the following Doc:
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/how-to-migrate-your-site-to-new-post-relationships/

Please note there were heavy changes on toolset relationships and some compatibility challenges, check these articles:
https://toolset.com/2018/05/when-if-to-migrate-relationships-in-old-toolset-sites/
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/backward-compatibility-measures-for-post-relationships/
https://toolset.com/2019/11/toolset-views-becoming-toolset-blocks/

Please note the risks and carefully take the next step.

#1565783

Sorry, I pulled the classic "saying 'it' instead of saying what I mean" blunder.

The database is using the legacy relationships. We need to run the DB upgrade within one particular site and are concerned about what will happen to the other sites using legacy relationships. Are the DB updates on a site by site basis, or will it run the whole network?

#1565863

On a multisite install, only users tables are shared between subsites, each site has its own tables. The database updates are on a site by site basis. But the plugins versions will be the same for all sites.

To be on the safe side, make sure to take a full database backup of your network before running the migration.

I'll remain at your disposal.

#1565991

Beautiful, thanks for the help! We suspected it would be site by site, but didn't want to blow it all up (even with a backup). Don't think it's within the scope of the project to completely retool the other sites too. We'll be running that update next week sometime. Thanks again!