PHPackages                             jjclane/laravel-sqlite-migrations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. jjclane/laravel-sqlite-migrations

ActiveLaravel-package[Database &amp; ORM](/categories/database)

jjclane/laravel-sqlite-migrations
=================================

A trait to translate Laravel migrations into SQLite safe migrations.

0.2.0(2y ago)1416.6k↓100%4[1 PRs](https://github.com/JJCLane/laravel-sqlite-migrations/pulls)MITPHP

Since Apr 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/JJCLane/laravel-sqlite-migrations)[ Packagist](https://packagist.org/packages/jjclane/laravel-sqlite-migrations)[ RSS](/packages/jjclane-laravel-sqlite-migrations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

Laravel SQLite Migrations
=========================

[](#laravel-sqlite-migrations)

A trait to translate Laravel migrations into SQLite safe migrations. This avoids the `Cannot add a NOT NULL column with default value NULL` issue that you receive when trying to add a non-nullable column to an existing table in a migration by initially adding the column as nullable and then modifying the column in a separate migration. It also maps Laravel datatypes that aren't supported in SQLite to avoid [this](https://github.com/laravel/framework/issues/8840).

Installation
------------

[](#installation)

`composer require jjclane/laravel-sqlite-migrations --dev`

How to use
----------

[](#how-to-use)

```
