fix(db): define clan_members before applying data migrations (#82) - #92
fix(db): define clan_members before applying data migrations (#82)#92Rodrigoue9 wants to merge 3 commits into
Conversation
| # feat(world-builder): register uploaded graphics and extend palette schemas (#6) | ||
|
|
||
| ## Summary | ||
| Resolves #6 by providing `paletteEntrySchema` and `validatePaletteEntry` to validate multi-layer palette definitions, enforce non-colliding graphic index allocations (`UPLOADED_GRAPHIC_INDEX_START = 1_000_000`), and verify graphic existence across engine and uploaded assets. | ||
|
|
||
| ### Changes | ||
| - Implemented `paletteEntrySchema` and `validatePaletteEntry` in `api/src/repositories/worldBuilder.ts`. | ||
| - Added unit tests in `api/src/repositories/__tests__/paletteValidation.test.ts`. | ||
|
|
||
| Closes #6 |
There was a problem hiding this comment.
💡 Quality: Committed draft file describes unrelated PR content
PR_DESCRIPTION_DRAFT.md was added but its content describes a world-builder palette feature (#6), which is unrelated to this PR's stated purpose of reordering clan_members schema definitions before data migrations (#82). This looks like an accidentally committed scratch/draft file. Remove it from the branch so it isn't merged into main.
Was this helpful? React with 👍 / 👎
Code Review 👍 Approved with suggestions 1 resolved / 2 findingsDefines clan_members before data migrations and adds error-stop directives in schema.sql to fix initialization errors, though the committed draft file describes unrelated PR content. 💡 Quality: Committed draft file describes unrelated PR content📄 PR_DESCRIPTION_DRAFT.md:1-10 PR_DESCRIPTION_DRAFT.md was added but its content describes a world-builder palette feature (#6), which is unrelated to this PR's stated purpose of reordering clan_members schema definitions before data migrations (#82). This looks like an accidentally committed scratch/draft file. Remove it from the branch so it isn't merged into main. ✅ 1 resolved✅ Bug: psql \set meta-command breaks node-postgres migration
🤖 Prompt for agentsOptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|
Cierro esta porque la #82 ya quedo resuelta en Que pasoLa #82 junto cuatro PRs de cuatro personas: #92, #99, #113 y #117. Las cuatro mueven la definicion de Se mergeo #114, de @trexfr-ops, porque:
Contexto que no se veia desde afueraLos PRs que vienen de un fork quedan en Y Gracias por el laburo. Si queres seguir, hay issues abiertas sin asignar: comenta con un plan concreto y te la asigno. |
Title
fix(db): define clan_members and indices before applying data migrations in schema.sql (#82)
Description
clan_members, its unique constraints, and associated indices prior to the data migration CTEs inapi/schema.sql.\set ON_ERROR_STOP ontoapi/schema.sqlso that any future schema ordering or syntax errors fail fast during CI rather than silently succeeding.Closes #82