<?php
// Temporary migration runner - DELETE THIS FILE after use
require __DIR__ . '/vendor/autoload.php';
$app = require_once __DIR__ . '/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$status = $kernel->handle(
    $input = new Symfony\Component\Console\Input\ArrayInput(['command' => 'migrate', '--force' => true]),
    new Symfony\Component\Console\Output\StreamOutput(fopen('php://output', 'w'))
);
echo "\n\nMigration completed with exit code: " . $status;
// Auto-delete for safety
unlink(__FILE__);
?>
