Skip to content

Commit f11ebf7

Browse files
committed
fix: impostazione adattatore di archiviazione in record migrati
1 parent 5bb4390 commit f11ebf7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

update/2_9_7.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
$database->insert('zz_files', [
2121
'id_module' => $id_module,
2222
'id_record' => $marca['id'],
23+
'id_adapter' => 1,
2324
'name' => 'Immagine',
2425
'filename' => $marca['immagine'],
2526
'original' => $marca['immagine'],
@@ -69,4 +70,7 @@
6970
], ['id' => $file['id']]);
7071
}
7172
}
72-
}
73+
}
74+
75+
// Fix per i record migrati con 2_9_6.php che hanno id_adapter = 0
76+
$database->query('UPDATE `zz_files` SET `id_adapter` = 1 WHERE `id_adapter` = 0');

0 commit comments

Comments
 (0)