Ship the bundle's own Doctrine migrations, so apps don't generate them
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by reading the bundle's Doctrine entity mappings and the existing migration configuration to identify the tables and migration entry points involved. The proposal leaves baseline strategy, adoption by existing apps, supported database platforms, and ordering unresolved, so those decisions need to be settled before implementation. Done means the bundle ships migrations for its mapped schema and apps can adopt them without regenerating those migrations locally.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Proposal
The bundle ships Doctrine migrations for its own schema: every table its entities map. Apps then receive them with composer update, through doctrine_migrations.migrations_paths with a bundle namespace.
Why
Almost every table in a CWA app belongs to the bundle's entities. Today each app generates migrations for them itself (doctrine:migrations:diff after updating the bundle), and the template's downstream sites copy the template's generated files. That causes three problems:
- Data migrations aren't shared:
diffonly produces schema changes, so a backfill the bundle needs has to be copied by hand. - Sites drift: each app's generated SQL can differ slightly from the next.
- Every bundle schema change needs a template release and a copy step in every downstream site.
If the bundle shipped them, the template would only need migrations for its own entities (today just the Redis watch state). It would also make squashing the template's history at beta simpler: https://github.com/components-web-app/components-web-app/issues/192
Questions for the bundle
- One baseline at the bundle's beta, then incremental migrations?
- How existing apps take over: their databases already have these tables from their own generated migrations. They'd mark the bundle's baseline as done (
doctrine:migrations:version --add) once, after checkingdiffis clean. - Database platforms: PostgreSQL first? The bundle already lists PostgreSQL, MySQL, MariaDB and SQLite for route-security rules.
- Ordering between bundle migrations and an app's own (Doctrine sorts by version across namespaces).
- Lingua principale
- PHP
- Stelle
- 32
- Fork
- 8
- Merge medio
- 1h 1m
- PR unite (30g)
- 193
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di components-web-app/api-components-bundle
-
Real-time co-editing: presence and selection events for admins over MercureForse già presa @silverbackdan l’ha presa oggi. Apertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
components-web-app/api-components-bundle#559 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
components-web-app/api-components-bundle#333 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
components-web-app/api-components-bundle#325 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
components-web-app/api-components-bundle#259 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
components-web-app/api-components-bundle#186 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di components-web-app/api-components-bundle
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
lorisleiva/laravel-docker#166 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
kanboard/kanboard#5929 · 1 commento · 3 reazioni ·
I maintainer di solito rispondono entro 5 giorni
-
Rebuild 6.2.3 images on PHP 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35 (CVE-2026-109618, CVE-2026-109619)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
swoole/docker-swoole#65 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
PHP-CS-Fixer/PHP-CS-Fixer#9899 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
backdrop-contrib/rules#257 ·