Files
MoneyFlix/crm/tools/run_migrations.php
1sonhador 8542395fbe Add public campaign analytics functionality
- Add PublicCampaignsController for public campaign analytics
- Add public routes for /public/analytics/{slug} and /api/campaigns/{slug}
- Add public campaign analytics view with charts and KPIs
- Support for campaign sharing via custom slugs
- Real-time analytics with ApexCharts integration
2025-10-15 00:30:00 +01:00

21 lines
476 B
PHP

<?php
declare(strict_types=1);
// Simple CLI entrypoint to run all pending migrations safely on the server
// Usage: php crm/tools/run_migrations.php
// Resolve base path to CRM
$basePath = dirname(__DIR__);
require $basePath . '/Core/Database/MigrationManager.php';
$manager = new App\Core\Database\MigrationManager();
$results = $manager->migrate();
// Output as JSON for automation
echo json_encode($results, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL;