Skip to content

Cherry-pick #47168: Reorder org_logo migration - #47186

Merged
nulmete merged 1 commit into
rc-minor-fleet-v4.87.0from
nulmete/reorder-org-logo-migration-cp
Jun 9, 2026
Merged

Cherry-pick #47168: Reorder org_logo migration#47186
nulmete merged 1 commit into
rc-minor-fleet-v4.87.0from
nulmete/reorder-org-logo-migration-cp

Conversation

@nulmete

@nulmete nulmete commented Jun 9, 2026

Copy link
Copy Markdown
Member

Cherry-pick of #47168 into the rc-minor-fleet-v4.87.0 RC branch.

Follows the cherry-pick of #47099 (#47166, already merged here). This re-timestamps the CreateOrgLogoTable migration 2026060817342720260527215818 so it sorts immediately after AddHostCertificatesOriginDeletedAtIndex(required so the same migration can also ship in the 4.86.2 patch without breaking the 4.86.2 → 4.87.0 upgrade path).

Note: schema.sql conflicted (main regenerated it against main's migration set, which differs from this RC branch) because 20260608202705_AddVulnPerfIndexes.go and 20260608210432_CleanupSoftwareLastOpenedAtSentinels.go are not part of the RC branch yet (looks like the PRs that introduced them on main have not been cherry-picked yet).

…AtIndex (#47168)

Follow-up to #47099. Re-timestamps the `CreateOrgLogoTable` migration so
it can also ship in the **4.86.2** patch.

`CreateOrgLogoTable` must sort **immediately after**
`20260527215817_AddHostCertificatesOriginDeletedAtIndex` (the last
migration in 4.86.1).

- Started server with latest `main` migrations applied. It failed.
- Ran `UPDATE migration_status_tables SET version_id = 20260527215818
WHERE version_id = 20260608173427;`.
- Started server, no crashes.

<img width="1458" height="628" alt="Screenshot 2026-06-09 at 10 19
40 AM"
src="https://github.com/user-attachments/assets/68d24712-78ae-42ca-8989-60c39647dd33"
/>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

* **Chores**
* Updated database migration infrastructure and corresponding tests to
maintain consistency.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@nulmete
nulmete marked this pull request as ready for review June 9, 2026 15:11
@nulmete
nulmete requested a review from a team as a code owner June 9, 2026 15:11
@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (rc-minor-fleet-v4.87.0@8eb7f9d). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...ations/tables/20260527215818_CreateOrgLogoTable.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##             rc-minor-fleet-v4.87.0   #47186   +/-   ##
=========================================================
  Coverage                          ?   67.17%           
=========================================================
  Files                             ?     2910           
  Lines                             ?   226166           
  Branches                          ?    11825           
=========================================================
  Hits                              ?   151919           
  Misses                            ?    60508           
  Partials                          ?    13739           
Flag Coverage Δ
backend 68.80% <66.66%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nulmete
nulmete merged commit 603d25d into rc-minor-fleet-v4.87.0 Jun 9, 2026
34 checks passed
@nulmete
nulmete deleted the nulmete/reorder-org-logo-migration-cp branch June 9, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants