Commit 3d184cd
chore: add migration check job to CI workflow + fix missaligned db migration (#3476)
## Summary
- Adds a new `migration-check` CI job that runs `./gradlew
diffChangeLog` and fails if migration files are out of date
- Reuses the backend build artifact (same as `schema-check` and
`backend-test`)
- Wired into `everything-passed` gate so PRs with stale migrations
cannot merge
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* CI pipeline now includes an automated migration check that validates
database migration files are up-to-date before completing builds.
* **Refactor**
* Database indexing was adjusted to change how certain activity records
are indexed, improving query behavior and performance in relevant
lookups.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Daniel Krizan <danyelkrizan@gmail.com>1 parent ce0eb6d commit 3d184cd
2 files changed
Lines changed: 40 additions & 1 deletion
File tree
- .github/workflows
- backend/data/src/main/kotlin/io/tolgee/model/activity
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
325 | 359 | | |
326 | 360 | | |
327 | 361 | | |
| |||
399 | 433 | | |
400 | 434 | | |
401 | 435 | | |
| 436 | + | |
402 | 437 | | |
403 | 438 | | |
404 | 439 | | |
| |||
433 | 468 | | |
434 | 469 | | |
435 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
436 | 475 | | |
437 | 476 | | |
438 | 477 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments