Automate XL-Vask invoice-period resolution (#340)

Deploy the revision-aware XL-Vask import and guarded autopilot infrastructure. Automatic actions remain fail-closed pending production readiness, calibration, dry-run, and canary gates.
This commit is contained in:
Jeppe B
2026-08-03 15:33:55 +02:00
committed by GitHub
parent 0b304a2203
commit 6d888a455d
17 changed files with 3637 additions and 223 deletions
@@ -201,10 +201,18 @@ class plate_scanners_o extends db
if (!self::tableHasColumn('plate_scanners', 'lane_id')) {
$db->query("ALTER TABLE `plate_scanners` ADD COLUMN `lane_id` INT NULL AFTER `department_id`");
}
self::$schemaInitialized = true;
}
/** Explicit mutation-path compatibility bootstrap for XL Vask hall scoping. */
public static function ensureHallIdSchemaForMutation(): void
{
global $db;
if (!self::tableHasColumn('plate_scanners', 'HallId')) {
$db->query("ALTER TABLE `plate_scanners` ADD COLUMN `HallId` VARCHAR(191) NULL AFTER `lane_id`");
}
}
private static function tableHasColumn(string $table, string $column): bool
{
global $db;