jjclane/laravel-sqlite-migrations
Trait for Laravel migrations that makes schema changes SQLite-safe. Automatically transforms unsupported column types and avoids “Cannot add a NOT NULL column with default value NULL” by adding columns safely, letting migrations run cleanly on SQLite.
NOT NULL defaults, unsupported datatypes like ENUM).Adopt if:
NOT NULL constraints, unsupported datatypes like ENUM, JSON, or UUID).Look elsewhere if:
ATTACH DATABASE, WITHOUT ROWID) unsupported by Laravel’s schema builder.Schema::create() with SQLite-only clauses (e.g., PRAGMA statements).For Executives: "This package eliminates SQLite migration headaches in Laravel, saving dev time and reducing CI/CD failures. By automatically translating MySQL/PostgreSQL migrations to SQLite-safe syntax, we can standardize our database layer—enabling faster testing, local dev, and even lightweight deployments without rewriting migrations. Low risk (dev-only dependency), high ROI for multi-database workflows."
For Engineering:
*"A lightweight trait that auto-fixes SQLite migration issues (e.g., NOT NULL defaults, unsupported datatypes) by:
ENUM → TEXT) to SQLite equivalents.use TransformMigration to your classes. Ideal for teams using SQLite in testing or edge cases."*How can I help you explore Laravel packages today?