From 94ead67aaae2a4ead569f98605c2ee184eb393dd Mon Sep 17 00:00:00 2001 From: George Dumitrescu Date: Thu, 24 Sep 2026 21:20:42 +0300 Subject: [PATCH] feat: declare where each framework keeps its migrations lerd compares the files in this folder between a new worktree and the parent checkout to pick the worktree's database, so a branch whose schema differs from the parent's no longer shares its database by default. Older lerd versions ignore the key. --- frameworks/cakephp/3.yaml | 4 ++++ frameworks/cakephp/4.yaml | 4 ++++ frameworks/cakephp/5.yaml | 4 ++++ frameworks/codeigniter/4.yaml | 4 ++++ frameworks/laravel/10.yaml | 4 ++++ frameworks/laravel/11.yaml | 4 ++++ frameworks/laravel/12.yaml | 4 ++++ frameworks/laravel/13.yaml | 4 ++++ frameworks/laravel/6.yaml | 4 ++++ frameworks/laravel/7.yaml | 4 ++++ frameworks/laravel/8.yaml | 4 ++++ frameworks/laravel/9.yaml | 4 ++++ frameworks/lumen/10.yaml | 4 ++++ frameworks/lumen/11.yaml | 4 ++++ frameworks/lumen/6.yaml | 4 ++++ frameworks/lumen/7.yaml | 4 ++++ frameworks/lumen/8.yaml | 4 ++++ frameworks/lumen/9.yaml | 4 ++++ frameworks/symfony/4.yaml | 4 ++++ frameworks/symfony/5.yaml | 4 ++++ frameworks/symfony/6.yaml | 4 ++++ frameworks/symfony/7.yaml | 4 ++++ frameworks/symfony/8.yaml | 4 ++++ 23 files changed, 92 insertions(+) diff --git a/frameworks/cakephp/3.yaml b/frameworks/cakephp/3.yaml index 53fcd3a..d4d8113 100644 --- a/frameworks/cakephp/3.yaml +++ b/frameworks/cakephp/3.yaml @@ -92,3 +92,7 @@ commands: doctor: migrate_command: migrate + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: config/Migrations diff --git a/frameworks/cakephp/4.yaml b/frameworks/cakephp/4.yaml index 70e249e..b56a868 100644 --- a/frameworks/cakephp/4.yaml +++ b/frameworks/cakephp/4.yaml @@ -136,3 +136,7 @@ devtools: jobs: - implements: Cake\Queue\Job\JobInterface method: execute + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: config/Migrations diff --git a/frameworks/cakephp/5.yaml b/frameworks/cakephp/5.yaml index 005399d..f2c1aaa 100644 --- a/frameworks/cakephp/5.yaml +++ b/frameworks/cakephp/5.yaml @@ -146,3 +146,7 @@ devtools: jobs: - implements: Cake\Queue\Job\JobInterface method: execute + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: config/Migrations diff --git a/frameworks/codeigniter/4.yaml b/frameworks/codeigniter/4.yaml index cedb154..8fb6306 100644 --- a/frameworks/codeigniter/4.yaml +++ b/frameworks/codeigniter/4.yaml @@ -153,3 +153,7 @@ devtools: jobs: - implements: CodeIgniter\Queue\Interfaces\JobInterface method: process + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: app/Database/Migrations diff --git a/frameworks/laravel/10.yaml b/frameworks/laravel/10.yaml index c6812c5..0b0fb28 100644 --- a/frameworks/laravel/10.yaml +++ b/frameworks/laravel/10.yaml @@ -226,3 +226,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/laravel/11.yaml b/frameworks/laravel/11.yaml index bcac226..0fa9f26 100644 --- a/frameworks/laravel/11.yaml +++ b/frameworks/laravel/11.yaml @@ -243,3 +243,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/laravel/12.yaml b/frameworks/laravel/12.yaml index 6d82464..7dcebef 100644 --- a/frameworks/laravel/12.yaml +++ b/frameworks/laravel/12.yaml @@ -243,3 +243,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/laravel/13.yaml b/frameworks/laravel/13.yaml index 0a6047c..692a4d0 100644 --- a/frameworks/laravel/13.yaml +++ b/frameworks/laravel/13.yaml @@ -243,3 +243,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/laravel/6.yaml b/frameworks/laravel/6.yaml index fe23cab..af7bf3a 100644 --- a/frameworks/laravel/6.yaml +++ b/frameworks/laravel/6.yaml @@ -213,3 +213,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/laravel/7.yaml b/frameworks/laravel/7.yaml index 4499164..dbe4263 100644 --- a/frameworks/laravel/7.yaml +++ b/frameworks/laravel/7.yaml @@ -213,3 +213,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/laravel/8.yaml b/frameworks/laravel/8.yaml index e395992..768ef7a 100644 --- a/frameworks/laravel/8.yaml +++ b/frameworks/laravel/8.yaml @@ -213,3 +213,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/laravel/9.yaml b/frameworks/laravel/9.yaml index 7eab7e3..44b7552 100644 --- a/frameworks/laravel/9.yaml +++ b/frameworks/laravel/9.yaml @@ -226,3 +226,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/lumen/10.yaml b/frameworks/lumen/10.yaml index c89ae6b..dffadac 100644 --- a/frameworks/lumen/10.yaml +++ b/frameworks/lumen/10.yaml @@ -159,3 +159,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/lumen/11.yaml b/frameworks/lumen/11.yaml index 4ad843d..7ef4b21 100644 --- a/frameworks/lumen/11.yaml +++ b/frameworks/lumen/11.yaml @@ -161,3 +161,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/lumen/6.yaml b/frameworks/lumen/6.yaml index 9bb8237..2152c38 100644 --- a/frameworks/lumen/6.yaml +++ b/frameworks/lumen/6.yaml @@ -163,3 +163,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/lumen/7.yaml b/frameworks/lumen/7.yaml index 044bcfe..c2cd139 100644 --- a/frameworks/lumen/7.yaml +++ b/frameworks/lumen/7.yaml @@ -163,3 +163,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/lumen/8.yaml b/frameworks/lumen/8.yaml index 5b6bc5f..abdf0b7 100644 --- a/frameworks/lumen/8.yaml +++ b/frameworks/lumen/8.yaml @@ -163,3 +163,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/lumen/9.yaml b/frameworks/lumen/9.yaml index 0820c9e..94963ce 100644 --- a/frameworks/lumen/9.yaml +++ b/frameworks/lumen/9.yaml @@ -159,3 +159,7 @@ doctor: unknown_on_error: true fix: migrate detail: "There are pending migrations, run migrate to apply them." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: database/migrations diff --git a/frameworks/symfony/4.yaml b/frameworks/symfony/4.yaml index d632ef1..ea068a0 100644 --- a/frameworks/symfony/4.yaml +++ b/frameworks/symfony/4.yaml @@ -142,3 +142,7 @@ doctor: warn_if: APP_DEBUG: "true" detail: "APP_DEBUG is on while APP_ENV=prod, so stack traces and internals will leak. Turn debug off in production." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: migrations diff --git a/frameworks/symfony/5.yaml b/frameworks/symfony/5.yaml index 34d4b88..dc632d7 100644 --- a/frameworks/symfony/5.yaml +++ b/frameworks/symfony/5.yaml @@ -153,3 +153,7 @@ doctor: warn_if: APP_DEBUG: "true" detail: "APP_DEBUG is on while APP_ENV=prod, so stack traces and internals will leak. Turn debug off in production." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: migrations diff --git a/frameworks/symfony/6.yaml b/frameworks/symfony/6.yaml index 6701d5d..4946c08 100644 --- a/frameworks/symfony/6.yaml +++ b/frameworks/symfony/6.yaml @@ -153,3 +153,7 @@ doctor: warn_if: APP_DEBUG: "true" detail: "APP_DEBUG is on while APP_ENV=prod, so stack traces and internals will leak. Turn debug off in production." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: migrations diff --git a/frameworks/symfony/7.yaml b/frameworks/symfony/7.yaml index 8a6309e..54a9817 100644 --- a/frameworks/symfony/7.yaml +++ b/frameworks/symfony/7.yaml @@ -153,3 +153,7 @@ doctor: warn_if: APP_DEBUG: "true" detail: "APP_DEBUG is on while APP_ENV=prod, so stack traces and internals will leak. Turn debug off in production." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: migrations diff --git a/frameworks/symfony/8.yaml b/frameworks/symfony/8.yaml index 966e032..fc64f83 100644 --- a/frameworks/symfony/8.yaml +++ b/frameworks/symfony/8.yaml @@ -160,3 +160,7 @@ doctor: warn_if: APP_DEBUG: "true" detail: "APP_DEBUG is on while APP_ENV=prod, so stack traces and internals will leak. Turn debug off in production." + +# Where the schema migrations live; comparing it across checkouts picks a new worktree's database. +worktree: + migrations: migrations