ottowayne/sqlite-migration-fix
Composer 安装命令:
composer require ottowayne/sqlite-migration-fix
包简介
Laravel package to fix SQLite migrations by making all columns nullable in testing environments
README 文档
README
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.
统计信息
- 总下载量: 2.85k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-12