1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-11 07:05:22 +01:00
openstamanager/update/2_5_1.php
2024-04-05 09:47:28 +02:00

13 lines
340 B
PHP

<?php
use Modules\FileAdapters\FileAdapter;
include __DIR__.'/core.php';
// Imposto l'adattatore locale di default se non definito
$default = FileAdapter::where('is_default', 1)->first();
if (empty($default)) {
$adapter = FileAdapter::where('name', 'Adattatore locale')->first();
$adapter->is_default = 1;
$adapter->save();
}