axn/laravel-pk-int-to-bigint
Safely convert Laravel integer primary keys to bigint with this package's migration helpers and Artisan commands, updating existing ID columns and related foreign keys so your database is ready for large datasets without breaking references.
INT primary keys are a near-term scalability risk. Tables approaching signed INT (~2.1B) or unsigned INT (~4.3B) limits can cause insertion failures and outages; this package supports a planned migration to BIGINT.INT-to-BIGINT migration as preventive maintenance rather than emergency remediation, enabling better change management and stakeholder communication.INT primary keys and related foreign keys, and growth forecasts or current usage suggest you may approach integer limits.Look elsewhere or handle manually when:
BIGINT from the start instead of migrating later.Executive summary: This is a low-cost, MIT-licensed Laravel utility that automates converting primary keys and foreign keys from INT to BIGINT. It helps us avoid a future scalability failure where high-growth tables run out of integer IDs and block writes. The product benefit is resilience and reduced incident risk, not new customer-facing functionality.
For engineering: It may reduce manual migration effort and FK-ordering errors, but it must be treated as a production schema change. Validate compatibility, run against a staging copy, measure lock/downtime impact on large tables, confirm rollback, and review the package code before adoption.
For leadership: Recommend a time-boxed technical evaluation and staging pilot rather than broad adoption. The package is inexpensive and targeted, but its small community footprint means we should pair it with internal review and a rollback plan. Adopt only if we have identified tables approaching INT limits or high-volume roadmap features that make future migration likely.
How can I help you explore Laravel packages today?