Command Info

Name: mongo:migrate-id-fields

Description: Migrate existing MongoDB documents that have both _id and id fields for Laravel 12 compatibility

Status: completed

Start Time: 2025-05-26 15:13:29

End Time: 2025-05-26 15:13:30

Total Time: 1 second

Dispatched Jobs Count: 0

Successful Jobs Count: 0

Failed Jobs Count: 0

Output

15:13:29 Starting MongoDB ID fields migration...
15:13:29 Processing collection: google_analytics_active_users
15:13:29 No documents with both _id and id fields found in google_analytics_active_users
15:13:29 Processing collection: google_analytics_properties
15:13:29 Found 18 documents to migrate in google_analytics_properties
15:13:29 Migrated 18 documents by recreating collection
15:13:29 Processing collection: google_crux_reports
15:13:29 No documents with both _id and id fields found in google_crux_reports
15:13:29 Processing collection: google_page_speed_insights
15:13:29 Found 584 documents to migrate in google_page_speed_insights
15:13:30 Migrated 584 documents by recreating collection
15:13:30 Processing collection: runcloud_cron_jobs
15:13:30 Found 17 documents to migrate in runcloud_cron_jobs
15:13:30 Migrated 17 documents by recreating collection
15:13:30 Processing collection: runcloud_domains
15:13:30 Found 33 documents to migrate in runcloud_domains
15:13:30 Migrated 33 documents by recreating collection
15:13:30 Processing collection: runcloud_hub_settings
15:13:30 Found 7 documents to migrate in runcloud_hub_settings
15:13:30 Migrated 7 documents by recreating collection
15:13:30 Processing collection: runcloud_ssl_certificates
15:13:30 Found 5 documents to migrate in runcloud_ssl_certificates
15:13:30 Migrated 5 documents by recreating collection
15:13:30 Migration completed! Total documents updated: 664
15:13:30 You can now run your original command: php artisan kokos-analytics:get-google-analytics-data