<?php
require_once __DIR__ . '/../../db/config.php';

try {
    $pdo = db();
    $sql = <<<SQL
ALTER TABLE people
ADD COLUMN nip VARCHAR(255) DEFAULT NULL,
ADD COLUMN industry VARCHAR(255) DEFAULT NULL,
ADD COLUMN company_size VARCHAR(255) DEFAULT NULL,
ADD COLUMN business_description TEXT DEFAULT NULL,
ADD COLUMN company_logo_path VARCHAR(255) DEFAULT NULL,
ADD COLUMN person_photo_path VARCHAR(255) DEFAULT NULL,
ADD COLUMN gains_sheet_path VARCHAR(255) DEFAULT NULL,
ADD COLUMN top_wanted_contacts_path VARCHAR(255) DEFAULT NULL,
ADD COLUMN top_owned_contacts_path VARCHAR(255) DEFAULT NULL;
SQL;
    $pdo->exec($sql);
    echo "Migration 018 successfully applied: Added detail columns to people table.\n";
} catch (PDOException $e) {
    echo "Error applying migration 018: " . $e->getMessage() . "\n";
    exit(1);
}

