36766-vm/db/migration_011_add_file_path_to_service_requests.php
Flatlogic Bot 6c14b2436f 2.0
2025-12-18 09:40:37 +00:00

12 lines
357 B
PHP

<?php
require_once __DIR__ . '/config.php';
try {
$pdo = db();
$sql = "ALTER TABLE service_requests ADD COLUMN file_path VARCHAR(255) DEFAULT NULL";
$pdo->exec($sql);
echo "Migration to add file_path to service_requests table applied successfully." . PHP_EOL;
} catch (PDOException $e) {
die("Migration failed: " . $e->getMessage());
}