Skip to content

Migrations, Queues & Seeding

WireConsole gives developers and release engineers direct, audited control over schema migrations, background queue processing, and database seeding.

Migrations tracks applied and pending batches in wire_migrations, scaffolds new stubs, and enforces optional pre-reset SQL safety backups.
  • 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()).
Queues monitors pending and failed jobs, runs bounded synchronous worker batches, dispatches validated JSON payloads, and inspects handler source files.
  • Process Queue Batch: Run a bounded synchronous worker batch (1-50 max jobs, configurable max tries) via workQueueBatch() without timing out HTTP workers.
  • Dispatch Queue Job: Select any discovered handler from site/queue/, supply a validated JSON payload (capped at 64 KB, depth 16, 512 elements), 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.
Seeding detects FakerPHP availability, lists all discovered site/seeders/ classes, and lets you inspect source or execute seeders on demand.

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.

Next steps