fleet/server/datastore/mysql/migrations/data
Lucas Manuel Rodriguez 38b8c9cc58
Move external dependency goose to monorepo (#15859)
#15555

Probably the best way to review this is commit by commit:
- First commit does the actual moving.
- Second commit fixes golangci-lint issues (in the least effort way to
avoid refactoring or rearrangement of some of the code).
- Third commit moves a printf to before the migration step is executed.
In the past some customers hitting migration issues (like migration
steps hanging or taking long to execute) and wanted to know which one
was it. The only way to know was to look at the repository and looking
for the next migration after the last one logged.

Checks:
- [X] Manual QA for all new/changed functionality

Manual tests:
- `make fleet && make db-reset`.
- Adding a new migration via `make migration name=Foobar` and then
running `./build/fleet prepare db`.
- Enrolling a new device to Fleet (smoke test).
2024-01-02 17:52:00 -03:00
..
20161229171615_InsertBuiltinLabels.go Remove inmem store (#1534) 2021-08-04 10:40:04 -03:00
20170223171234_UpdateBuiltinLabels.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
20170301093653_AddAllHostsToAllHostsLabel.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
20170314151620_FixCentosLabel.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
20181119180000_Placeholder.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
20210330130314_UpdateBuiltinLabels.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
20210806135609_AddAllLinuxBuiltInLabels.go Add All Linux label (#1582) 2021-08-18 15:55:48 -03:00
20210819120215_ChangeTeamScheduleNames.go Make team schedule names more user friendly and hide them from host pack stats (#1737) 2021-08-23 14:23:47 -03:00
20230525175650_InsertChromeBuiltInLabel.go Renamed 'ChromeOS' label to 'chrome' (#12156) 2023-06-06 15:25:23 -04:00
migration.go Move external dependency goose to monorepo (#15859) 2024-01-02 17:52:00 -03:00
README.md Update /macadmins endpoints to include MDM name and aggregate count (#7137) 2022-08-10 15:15:01 -04:00

Data Migrations

Data migrations are now deprecated, and any data changes (DML statements - Data Modification Language) should be done in standard "tables" migrations, alongside any table (DDL statements - Data Definition Language) changes.