Command Info

Name: mongo:rename-id-fields

Description: Rename id fields to collection-specific names to avoid Laravel 12 conflicts

Status: completed

Start Time: 2025-05-26 15:32:11

End Time: 2025-05-26 15:32:12

Total Time: 1 second

Dispatched Jobs Count: 0

Successful Jobs Count: 0

Failed Jobs Count: 0

Output

15:32:11 Lock acquired for command: mongo:rename-id-fields
15:32:11 Starting MongoDB ID fields renaming...
15:32:11 Processing collection: google_analytics_active_users
15:32:11 No documents with 'id' field found in google_analytics_active_users
15:32:11 Processing collection: google_analytics_properties
15:32:11 Found 18 documents to rename field in google_analytics_properties
15:32:11 Renamed 'id' to 'google_analytics_property_id' in 18 documents
15:32:11 Processing collection: google_crux_reports
15:32:11 No documents with 'id' field found in google_crux_reports
15:32:11 Processing collection: google_page_speed_insights
15:32:11 Found 584 documents to rename field in google_page_speed_insights
15:32:12 Renamed 'id' to 'google_page_speed_insight_id' in 584 documents
15:32:12 Processing collection: runcloud_cron_jobs
15:32:12 Found 17 documents to rename field in runcloud_cron_jobs
15:32:12 Renamed 'id' to 'runcloud_cron_job_id' in 17 documents
15:32:12 Processing collection: runcloud_domains
15:32:12 Found 33 documents to rename field in runcloud_domains
15:32:12 Renamed 'id' to 'runcloud_domain_id' in 33 documents
15:32:12 Processing collection: runcloud_hub_settings
15:32:12 Found 7 documents to rename field in runcloud_hub_settings
15:32:12 Renamed 'id' to 'runcloud_hub_setting_id' in 7 documents
15:32:12 Processing collection: runcloud_ssl_certificates
15:32:12 Found 5 documents to rename field in runcloud_ssl_certificates
15:32:12 Renamed 'id' to 'runcloud_ssl_certificate_id' in 5 documents
15:32:12 Field renaming completed! Total documents updated: 664
15:32:12 Now you need to update your model code to use the new field names.
15:32:12 Lock released for mongo:rename-id-fields