Skip to main content
Topic: Upgrading Multi Tenancy Addon (Read 1904 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Upgrading Multi Tenancy Addon

I have been trying to upgrade the Multi Tenancy Addon (previously known as Multi ElkArte SubForums Addon) to make compatible with 1.1 RC 1 with no luck in converting the database part of the code. I commented out the code in Tenancy.mod11.xml for testing other code which so far are working. I need help in fixing that database part which has been discussed in other topic in here. If anybody can offer assistance, I'd be very grateful and will also consider a token for it. Do reply in this topic or pm me personally. Thanking you in advance.
Last Edit: February 12, 2017, 05:36:36 pm by ahrasis

Re: Upgrading Multi Tenancy Addon

Reply #1

IIRC, the general idea of the changes I gave should work.
What doesn't is the code to do the "install".

Maybe you can try:
Code: [Select]
<?php

$settingsForm = new Settings_Form(Settings_Form::FILE_ADAPTER);
$settingsVals = $settingsForm->getConfigValues();
$settingsVals['db_type'] = 'MySQLm';
$settingsForm->setConfigValues($settingsVals);
$settingsForm->save();

And if that doesn't work, maybe @live627 can suggest how to use the new settings class to save the new db-type to Settings.php...
Bugs creator.
Features destroyer.
Template killer.

Re: Upgrading Multi Tenancy Addon

Reply #2

Thanks for the feedback. I will attempt the new code soonest.