New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ottowayne/sqlite-migration-fix

Laravel package to fix SQLite migrations by making all columns nullable in testing environments
2,853 3
Install
composer require ottowayne/sqlite-migration-fix:dev-master
PHP:>=5.4.0
License:MIT
Last Updated:Feb 3, 2016
Links: GitHub  ·  Packagist
Maintainer: ottowayne

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.

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

Compatibility

  • Laravel 5.0

Installation

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:

'Ottowayne\SQLiteMigrationFix\DatabaseServiceProvider',

Usage

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

Related Packages

aldoggutierrez/laravel-schema-manager

Manage PostgreSQL schemas in Laravel applications

4,962 0
orchestra/tenanti

Tenant based Database Schema Manager for Laravel

127,635 588
dvrtech/schema-tools

Laravel package for JSON/CSV schema analysis and database structure generation

11,396 0
enriquejlicona/tenanti

Tenant based Database Schema Manager for Laravel

5,072 0
clcbws/laravel-schema-sentinel

Detect and fix database schema drift in Laravel by comparing migrations with the...

11,155 64