Laravel package to fix SQLite migrations by making all columns nullable in testing environments

dev-master 2016-02-03 18:02 UTC

This package is not auto-updated.

Last update: 2024-06-12 05:27:34 UTC


This will fix the SQLite error Cannot add a NOT NULL column with default value NULL by making all columns nullable in testing environments.

Please note that this changes the behaviour of your app and thus may alter your test results.


  • Laravel 5.0


To install via composer add the following line to your composer.json:

"ottowayne/sqlite-migration-fix": "dev-master"

I recommend using this package in local environments (require-dev) only.

Finally add the service provider to your app.php:



After adding the service provider you are done. The changes will only apply to the testing-environment.