39038-vm/db/migrations/add_pod_file_to_shipments.php
2026-03-14 13:13:28 +00:00

13 lines
345 B
PHP

<?php
require_once __DIR__ . '/../config.php';
try {
$pdo = db();
$pdo->exec("ALTER TABLE shipments ADD COLUMN pod_file VARCHAR(255) DEFAULT NULL;");
echo "Added pod_file column to shipments table.\n";
} catch (PDOException $e) {
// Column might already exist
echo "Error (or column exists): " . $e->getMessage() . "\n";
}