Fix tabella zz_groups

This commit is contained in:
pek5892 2024-06-05 12:48:27 +02:00
parent bdc7487da6
commit aac06d1c0f
1 changed files with 11 additions and 0 deletions

11
update/2_5_3.php Normal file
View File

@ -0,0 +1,11 @@
<?php
include_once __DIR__.'/core.php';
// Controllo se è presente il campo nome in zz_groups
$has_nome = database()->columnExists('zz_groups', 'nome');
$has_name = database()->columnExists('zz_groups', 'name');
if ($has_name && $has_nome) {
$database->query('ALTER TABLE `zz_groups` DROP `name`');
}