fleet/tools/dbutils
Magnus Jensen 924ee95048
Add simple dbutils tool to quickly set migration table status (#37067)
I wrote this small utility tool to quickly help switch migrations off or
on, when switching between versions.

It fits this workflow:

- You build fleet
- Start and see missing or unknown migrations: `Missing migrations:
tables=[20251207050413 20251208215800].`
- Copy all values inside the `[]` and run the tool:
- `./tools/dbutils/update-migration-status 1 20251207050413
20251208215800` if you already have the migrations.
- Or when going to older versions:
- `./tools/dbutils/update-migration-status 0 20251207050413
20251208215800` to disable them.

Feel free to reject if deemed unnecessary, I've found it be helpful for
me, so wanted to put it up for potential merge if others could see the
benefit.
2025-12-10 15:18:37 -04:00
..
delete-host
get-host-tokens
insert-host-and-token
schema_generator.go Update MySQL versions we test with to 8.4.7 and 9.5.0 (#36803) 2025-12-08 09:12:05 -06:00
update-migration-status Add simple dbutils tool to quickly set migration table status (#37067) 2025-12-10 15:18:37 -04:00