- 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
21 lines
476 B
PHP
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;
|
|
|
|
|
|
|
|
|