Store names in a Doctrine entity, seed via migration #1
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/data-migration-doctrine-entity-bf52a5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
App\Entity\Nameentity instead of raw PDO queries.migrations/Version20260723085751.php), replacingdocker/mysql/init.sql.sv-fixer.dinit hook (docker/sv-fixer.d/20_migrate.sh) executesdoctrine:migrations:migratesynchronously before nginx/php-fpm start — no separate compose service or manual step required.Test plan
docker compose buildsucceedsdocker compose up(empty volume): app container log shows the migration running and completing before php-fpm/nginx startcurl localhost:$WEB_PORT/returns a randomized name from the seeded dataView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.