<?php
require_once __DIR__ . '/vendor/autoload.php';
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();

use App\Database;

$pdo = Database::getConnection();

try {
    $migrationSql = file_get_contents(__DIR__ . '/migrations/020_create_patient_notes.sql');
    $pdo->exec($migrationSql);
    echo "✓ Migration 020 başarıyla yürütüldü!\n";
} catch (\Exception $e) {
    echo "✗ Hata: " . $e->getMessage() . "\n";
}
?>
