fleet/server/datastore
Jordan Montgomery b0866dcb10
Fix failing migration by conditionally deleting old constraint (#33878)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #33876 

Modifies the migration to check for the old constraint before deleting
it in case it was created on mysql 5.7

No changes file since this is an unreleased bug

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)

## Testing

- [x] Added/updated automated tests
- [x] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)

- [x] QA'd all new/changed functionality manually

For unreleased bug fixes in a release candidate, one of:

- [x] Confirmed that the fix is not expected to adversely impact load
test results

## Database migrations

- [x] Checked table schema to confirm autoupdate
- [x] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [x] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [x] Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
2025-10-06 16:01:26 -04:00
..
cached_mysql Improved performance when modifying config with a large number of yara rules (#32696) 2025-09-08 10:24:22 -05:00
failing Add custom software icons (#32652) 2025-09-05 17:31:03 -05:00
filesystem Add custom software icons (#32652) 2025-09-05 17:31:03 -05:00
mysql Fix failing migration by conditionally deleting old constraint (#33878) 2025-10-06 16:01:26 -04:00
mysqlredis Add missing platform_like during orbit enrollment (#32671) 2025-09-05 16:05:19 -03:00
redis New rate limit algorithm for Fleet Desktop endpoints (#33344) 2025-09-26 15:03:50 -03:00
s3 Fix GCS for remaining features that use S3 (#32743) 2025-09-09 11:22:04 -03:00