mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Introduce ISetConfigValuesTransactional for transactional config behaviour
This commit is contained in:
parent
4d4b4a8858
commit
65d79d4c93
14 changed files with 588 additions and 150 deletions
|
@ -1184,11 +1184,13 @@ function update_1508()
|
|||
{
|
||||
$config = DBA::selectToArray('config');
|
||||
|
||||
$newConfig = DI::config()->transactional();
|
||||
|
||||
foreach ($config as $entry) {
|
||||
DI::config()->set($entry['cat'], $entry['k'], $entry['v'], false);
|
||||
$newConfig->set($entry['cat'], $entry['k'], $entry['v']);
|
||||
}
|
||||
|
||||
DI::config()->save();
|
||||
$newConfig->save();
|
||||
|
||||
DBA::e("DELETE FROM `config`");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue