DatabaseQueueSchemaValidator
final class DatabaseQueueSchemaValidator (View source)
| internal |
Rejects missing or pre-lease queue tables without attempting an implicit schema migration.
Methods
Creates a validator over the configured queue database connection.
Verifies that both queue tables expose every column required by the authenticated lease lifecycle.
Verifies that an existing active queue table exposes the complete lease-aware row contract.
Verifies that an existing failed-job table can preserve terminal delivery diagnostics.
Details
__construct
__construct(DatabaseDriverInterface $db, ConnectionInterface $connection, DatabaseQueueDialect $dialect)
Creates a validator over the configured queue database connection.
assertCompatible
void
assertCompatible(string $table, string $failedTable)
Verifies that both queue tables expose every column required by the authenticated lease lifecycle.
assertActiveCompatible
void
assertActiveCompatible(string $table)
Verifies that an existing active queue table exposes the complete lease-aware row contract.
assertFailedCompatible
void
assertFailedCompatible(string $failedTable)
Verifies that an existing failed-job table can preserve terminal delivery diagnostics.