2017 © Pedro Peláez
 

library sqlite-migration-fix

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

image

ottowayne/sqlite-migration-fix

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

  • Wednesday, February 3, 2016
  • by ottowayne
  • Repository
  • 1 Watchers
  • 3 Stars
  • 2,847 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel SQLite Migration Fix

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

Please note that this changes the behaviour of your app and thus may alter your test results., (*2)

Compatibility

  • Laravel 5.0

Installation

To install via composer add the following line to your composer.json:, (*3)

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

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

Finally add the service provider to your app.php:, (*5)

'Ottowayne\SQLiteMigrationFix\DatabaseServiceProvider',

Usage

After adding the service provider you are done. The changes will only apply to the testing-environment., (*6)

The Versions

03/02 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Avatar ottowayne

laravel schema migration sqlite schemabuilder