{"id":37265010,"url":"https://github.com/jjclane/laravel-sqlite-migrations","last_synced_at":"2026-01-16T00:03:20.296Z","repository":{"id":54146010,"uuid":"128691468","full_name":"JJCLane/laravel-sqlite-migrations","owner":"JJCLane","description":"A trait to translate Laravel migrations into SQLite safe migrations.","archived":false,"fork":false,"pushed_at":"2024-03-02T15:16:08.000Z","size":9,"stargazers_count":14,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-14T14:43:40.408Z","etag":null,"topics":["illuminate-database","laravel","laravel-5-package","migrations","sqlite"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JJCLane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-08T23:51:08.000Z","updated_at":"2025-04-23T16:07:38.000Z","dependencies_parsed_at":"2022-08-13T07:31:28.920Z","dependency_job_id":null,"html_url":"https://github.com/JJCLane/laravel-sqlite-migrations","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/JJCLane/laravel-sqlite-migrations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JJCLane%2Flaravel-sqlite-migrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JJCLane%2Flaravel-sqlite-migrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JJCLane%2Flaravel-sqlite-migrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JJCLane%2Flaravel-sqlite-migrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JJCLane","download_url":"https://codeload.github.com/JJCLane/laravel-sqlite-migrations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JJCLane%2Flaravel-sqlite-migrations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28474211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T22:27:41.514Z","status":"ssl_error","status_checked_at":"2026-01-15T21:54:47.910Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["illuminate-database","laravel","laravel-5-package","migrations","sqlite"],"created_at":"2026-01-16T00:03:19.610Z","updated_at":"2026-01-16T00:03:20.287Z","avatar_url":"https://github.com/JJCLane.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel SQLite Migrations\nA trait to translate Laravel migrations into SQLite safe migrations. \nThis 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 \nan existing table in a migration by initially adding the column as nullable and then modifying the column in a separate migration.\nIt also maps Laravel datatypes that aren't supported in SQLite to avoid [this](https://github.com/laravel/framework/issues/8840).\n\n## Installation\n`composer require jjclane/laravel-sqlite-migrations --dev`\n\n## How to use\n````php\n\u003c?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse JJCLane\\SQLiteMigration\\TransformMigration;\n\nclass AddColumnToTable extends Migration\n{\n    use TransformMigration;\n\n    /**\n     * Run the migrations.\n     *\n     * @return void\n     */\n    public function up()\n    {\n        $this-\u003etable('table', function (Blueprint $table) {\n            // Normal migrations\n            $table-\u003edecimal('my_col', 10, 1)-\u003eunsigned()-\u003eafter('my_other_col');\n        });\n        \n        // or if you prefer to be more explicit\n        $this-\u003etransformMigration('table', function (Blueprint $table) {\n            // Normal migrations\n            $table-\u003edecimal('my_col', 10, 1)-\u003eunsigned()-\u003eafter('my_other_col');\n        });\n    }\n}\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjclane%2Flaravel-sqlite-migrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjclane%2Flaravel-sqlite-migrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjclane%2Flaravel-sqlite-migrations/lists"}