Migrations, Queues & Seeding
WireConsole gives developers and release engineers direct, audited control over schema migrations, background queue processing, and database seeding.
1. Schema Migrations (./migrations/)
Section titled “1. Schema Migrations (./migrations/)”- Run & Rollback: Execute all pending migrations (
steps = 0) or a bounded number of steps, or roll back recent batches. - Reset, Refresh & Fresh: Run full cycle operations (
reset,refresh,fresh) with Create SQL safety backup before running enabled by default and confirmation-word protection. - Scaffold Migration: Create timestamped migration files directly in
site/migrations/with validated PHP identifiers (isValidIdentifier()).
2. Background Queues (./queues/)
Section titled “2. Background Queues (./queues/)”- Process Queue Batch: Run a bounded synchronous worker batch (
1-50max jobs, configurable max tries) viaworkQueueBatch()without timing out HTTP workers. - Dispatch Queue Job: Select any discovered handler from
site/queue/, supply a validated JSON payload (capped at64 KB, depth16,512elements), and enqueue with an optional delay. - Failed Jobs & Cleanup: Retry individual or all
failed_jobs, delete single failed records, or purge pending rows by queue name.
3. Database Seeding (./seeding/)
Section titled “3. Database Seeding (./seeding/)”Run all discovered seeders (DatabaseSeeder) or trigger a specific seeder class from site/seeders/, inspect its source in the slide-over Sheet, or scaffold a new seeder class directly.