🫙 Sotto vuoto: flag per estendere scadenza prodotti conservati sotto vuoto

This commit is contained in:
dadaloop82
2026-03-15 18:09:38 +00:00
parent 3f0f27e938
commit 4239e0b204
6 changed files with 163 additions and 13 deletions
+7
View File
@@ -140,4 +140,11 @@ function migrateDB(PDO $db): void {
);
");
}
// Add vacuum_sealed column to inventory if missing
$invCols = $db->query("PRAGMA table_info(inventory)")->fetchAll();
$invColNames = array_column($invCols, 'name');
if (!in_array('vacuum_sealed', $invColNames)) {
$db->exec("ALTER TABLE inventory ADD COLUMN vacuum_sealed INTEGER DEFAULT 0");
}
}