fleet/server/datastore/mysql
Victor Lyuboslavsky 5abcf2ef3a
Drop duplicate MySQL indexes. (#24107)
#24109 
Duplicate indexes identified after running pt-duplicate-key-checker
https://docs.percona.com/percona-toolkit/pt-duplicate-key-checker.html

# Checklist for submitter

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- For database migrations:
- [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`).
2024-11-25 10:03:19 -06:00
..
migrations Drop duplicate MySQL indexes. (#24107) 2024-11-25 10:03:19 -06:00
activities.go fix: show script name in activity for setup experience script (#23944) 2024-11-19 17:38:09 -05:00
activities_test.go fix: show script name in activity for setup experience script (#23944) 2024-11-19 17:38:09 -05:00
aggregated_stats.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
aggregated_stats_test.go Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
app_configs.go Include Linux disk encryption status in configuration profiles aggregate status response when applicable, fix disk encryption/MDM configuration order-of-operations issues, add integration tests for LUKS (#24114) 2024-11-25 08:34:43 -06:00
app_configs_test.go Include Linux disk encryption status in configuration profiles aggregate status response when applicable, fix disk encryption/MDM configuration order-of-operations issues, add integration tests for LUKS (#24114) 2024-11-25 08:34:43 -06:00
apple_mdm.go Scope pending host profile rebuilds (#23772) 2024-11-15 11:55:30 -05:00
apple_mdm_test.go Bugfix: improve performance of updating nano_enrollments.last_seen_at under load (#23957) 2024-11-20 14:08:27 -05:00
calendar_events.go Enable staticcheck Go linter. (#23487) 2024-11-05 11:16:24 -06:00
calendar_events_test.go Correctly handle NULL timezones (#20605) 2024-07-22 10:04:29 -07:00
campaigns.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
campaigns_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
carves.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
carves_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
config.go 🧹 friday cleanup party: substitute deprecated import of go-kit (#19774) 2024-06-17 10:27:31 -03:00
cron_stats.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
cron_stats_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
delete.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
delete_test.go Updated factory method for creating queries in tests 2023-07-07 09:05:51 -04:00
email_changes.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
email_changes_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
errors.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
fulltext.go Using '@' in target search causes 422 error response (#5148) 2022-04-19 09:28:49 -04:00
fulltext_test.go Using '@' in target search causes 422 error response (#5148) 2022-04-19 09:28:49 -04:00
hosts.go Include Linux disk encryption status in configuration profiles aggregate status response when applicable, fix disk encryption/MDM configuration order-of-operations issues, add integration tests for LUKS (#24114) 2024-11-25 08:34:43 -06:00
hosts_test.go Populate disk encryption status when pulling a host by device auth token (#24014) 2024-11-21 10:49:39 -06:00
invites.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
invites_test.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
jobs.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
jobs_test.go Send DeviceConfigured MDM command after DEP enrollment (#17737) 2024-03-25 13:25:29 -04:00
labels.go Include Linux disk encryption status in configuration profiles aggregate status response when applicable, fix disk encryption/MDM configuration order-of-operations issues, add integration tests for LUKS (#24114) 2024-11-25 08:34:43 -06:00
labels_test.go Enable staticcheck Go linter. (#23487) 2024-11-05 11:16:24 -06:00
linux_mdm.go Add Linux encryption states to APIs (#23806) 2024-11-19 13:11:59 -07:00
linux_mdm_test.go Add Linux encryption states to APIs (#23806) 2024-11-19 13:11:59 -07:00
locks.go Merge conflicts 2024-04-16 10:20:59 -05:00
locks_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
maintained_apps.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
maintained_apps_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
mdm.go Scope pending host profile rebuilds (#23772) 2024-11-15 11:55:30 -05:00
mdm_test.go Update nanomdm dependency with latest bug fixes and improvements. (#23906) 2024-11-20 11:47:11 -06:00
microsoft_mdm.go Include Linux disk encryption status in configuration profiles aggregate status response when applicable, fix disk encryption/MDM configuration order-of-operations issues, add integration tests for LUKS (#24114) 2024-11-25 08:34:43 -06:00
microsoft_mdm_test.go chore: merge in main 2024-11-06 10:13:47 -05:00
migrations_test.go Use docker compose on CI instead of docker-compose (#21017) 2024-08-02 18:12:36 -03:00
mysql.go Limit OpenTelemetry span name length. (#23281) 2024-10-28 10:50:35 -05:00
mysql_test.go Minor fixes from analyzing test results (#23260) 2024-10-25 15:57:51 -05:00
nanomdm_storage.go Bugfix: improve performance of updating nano_enrollments.last_seen_at under load (#23957) 2024-11-20 14:08:27 -05:00
nanomdm_storage_test.go 19016 ingest certs on start (#19360) 2024-05-30 18:18:42 -03:00
operating_system_vulnerabilities.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
operating_system_vulnerabilities_test.go Profiles batch activity (#21604) 2024-08-30 16:00:35 -05:00
operating_systems.go Updated host_operating_system INSERT. (#18556) 2024-04-29 10:54:50 -05:00
operating_systems_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
packs.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
packs_test.go Enable staticcheck Go linter. (#23487) 2024-11-05 11:16:24 -06:00
password_reset.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
password_reset_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
policies.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
policies_test.go Improve memory usage of software installers parsing (#23596) 2024-11-12 09:28:08 -05:00
queries.go Added statistics for number of saved queries. (#24043) 2024-11-22 11:24:29 -05:00
queries_test.go Enable staticcheck Go linter. (#23487) 2024-11-05 11:16:24 -06:00
query_results.go Added server_settings.query_report_cap (#19692) 2024-06-14 12:24:01 -03:00
query_results_test.go Added server_settings.query_report_cap (#19692) 2024-06-14 12:24:01 -03:00
scep.go 19016 ingest certs on start (#19360) 2024-05-30 18:18:42 -03:00
scep_test.go use Fleet instead of FleetDM in certificates (#19748) 2024-06-14 11:08:49 -03:00
scheduled_queries.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
scheduled_queries_test.go Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
schema.sql Drop duplicate MySQL indexes. (#24107) 2024-11-25 10:03:19 -06:00
scripts.go fix: show script name in activity for setup experience script (#23944) 2024-11-19 17:38:09 -05:00
scripts_test.go Improve memory usage of software installers parsing (#23596) 2024-11-12 09:28:08 -05:00
sessions.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
sessions_test.go Enable staticcheck Go linter. (#23487) 2024-11-05 11:16:24 -06:00
setup_experience.go feat: do not run setup experience on hosts in a team with no software or script configured (#24073) 2024-11-22 13:52:28 -05:00
setup_experience_test.go feat: do not run setup experience on hosts in a team with no software or script configured (#24073) 2024-11-22 13:52:28 -05:00
software.go Add team_identifier to macOS software (#23766) 2024-11-15 14:17:04 -03:00
software_installers.go Clear pending (un)installs when installers are deleted (#23427) 2024-10-31 18:04:06 -05:00
software_installers_test.go Improve memory usage of software installers parsing (#23596) 2024-11-12 09:28:08 -05:00
software_test.go Add team_identifier to macOS software (#23766) 2024-11-15 14:17:04 -03:00
software_titles.go fix to PUT /setup_experience/software and GET /setup_experience/software endpoints (#23074) 2024-10-23 15:57:02 +01:00
software_titles_test.go Expose counts_updated_at on software title by-ID endpoint, show in UI (#23478) 2024-11-05 09:54:02 -06:00
statistics.go Added statistics for number of saved queries. (#24043) 2024-11-22 11:24:29 -05:00
statistics_test.go Added statistics for number of saved queries. (#24043) 2024-11-22 11:24:29 -05:00
targets.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
targets_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
teams.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
teams_test.go Enable staticcheck Go linter. (#23487) 2024-11-05 11:16:24 -06:00
testing_utils.go Bugfix: create/update manual label returns outdated info when configured with a mysql replica (#23725) 2024-11-13 08:57:22 -05:00
unicode_test.go Bugfix: only count hosts that user has permission to see in count field of label endpoints (#18859) 2024-05-21 12:02:08 -04:00
users.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
users_test.go Populate created_at and updated_at for newly created (non-invited) users (#22870) 2024-10-11 18:13:04 -05:00
vpp.go Enable staticcheck Go linter. (#23487) 2024-11-05 11:16:24 -06:00
vpp_test.go Enable staticcheck Go linter. (#23487) 2024-11-05 11:16:24 -06:00
vulnerabilities.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
vulnerabilities_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
windows_updates.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
windows_updates_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
wstep.go Add certificate management for Microsoft MDM (WSTEP) (#12543) 2023-06-29 19:31:53 -03:00
wstep_test.go Move nanomdm dependency in monorepo (#16015) 2024-01-11 23:28:48 -03:00