# Command: `mongo:migrate-id-fields`

**Description**: Migrate existing MongoDB documents that have both \_id and id fields for Laravel 12 compatibility
**Status**: completed
**Started**: 2025-05-26 15:13:29 | **Ended**: 2025-05-26 15:13:30 | **Duration**: 1s
**Jobs**: 0 dispatched / 0 completed / 0 failed

---

## Command Output

15:13:29 [INFO] Starting MongoDB ID fields migration...

15:13:29 [INFO] Processing collection: google\_analytics\_active\_users

15:13:29 [INFO] No documents with both \_id and id fields found in google\_analytics\_active\_users

15:13:29 [INFO] Processing collection: google\_analytics\_properties

15:13:29 [INFO] Found 18 documents to migrate in google\_analytics\_properties

15:13:29 [INFO] Migrated 18 documents by recreating collection

15:13:29 [INFO] Processing collection: google\_crux\_reports

15:13:29 [INFO] No documents with both \_id and id fields found in google\_crux\_reports

15:13:29 [INFO] Processing collection: google\_page\_speed\_insights

15:13:29 [INFO] Found 584 documents to migrate in google\_page\_speed\_insights

15:13:30 [INFO] Migrated 584 documents by recreating collection

15:13:30 [INFO] Processing collection: runcloud\_cron\_jobs

15:13:30 [INFO] Found 17 documents to migrate in runcloud\_cron\_jobs

15:13:30 [INFO] Migrated 17 documents by recreating collection

15:13:30 [INFO] Processing collection: runcloud\_domains

15:13:30 [INFO] Found 33 documents to migrate in runcloud\_domains

15:13:30 [INFO] Migrated 33 documents by recreating collection

15:13:30 [INFO] Processing collection: runcloud\_hub\_settings

15:13:30 [INFO] Found 7 documents to migrate in runcloud\_hub\_settings

15:13:30 [INFO] Migrated 7 documents by recreating collection

15:13:30 [INFO] Processing collection: runcloud\_ssl\_certificates

15:13:30 [INFO] Found 5 documents to migrate in runcloud\_ssl\_certificates

15:13:30 [INFO] Migrated 5 documents by recreating collection

15:13:30 [INFO] Migration completed! Total documents updated: 664

15:13:30 [INFO] You can now run your original command: php artisan kokos-analytics:get-google-analytics-data

---

## Jobs (0)

*No jobs dispatched*

*Exported at 2026-06-07T14:05:58+00:00*
