diff --git a/server/datastore/mysql/migrations/tables/20240226133702_AddFleetPlatformToHostMDMActions.go b/server/datastore/mysql/migrations/tables/20240301173035_AddFleetPlatformToHostMDMActions.go similarity index 67% rename from server/datastore/mysql/migrations/tables/20240226133702_AddFleetPlatformToHostMDMActions.go rename to server/datastore/mysql/migrations/tables/20240301173035_AddFleetPlatformToHostMDMActions.go index 96df7d2614..8a74ea9a33 100644 --- a/server/datastore/mysql/migrations/tables/20240226133702_AddFleetPlatformToHostMDMActions.go +++ b/server/datastore/mysql/migrations/tables/20240301173035_AddFleetPlatformToHostMDMActions.go @@ -6,10 +6,10 @@ import ( ) func init() { - MigrationClient.AddMigration(Up_20240226133702, Down_20240226133702) + MigrationClient.AddMigration(Up_20240301173035, Down_20240301173035) } -func Up_20240226133702(tx *sql.Tx) error { +func Up_20240301173035(tx *sql.Tx) error { _, err := tx.Exec(` ALTER TABLE host_mdm_actions ADD COLUMN fleet_platform VARCHAR(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' @@ -20,6 +20,6 @@ ALTER TABLE host_mdm_actions return nil } -func Down_20240226133702(tx *sql.Tx) error { +func Down_20240301173035(tx *sql.Tx) error { return nil } diff --git a/server/datastore/mysql/migrations/tables/20240226133702_AddFleetPlatformToHostMDMActions_test.go b/server/datastore/mysql/migrations/tables/20240301173035_AddFleetPlatformToHostMDMActions_test.go similarity index 95% rename from server/datastore/mysql/migrations/tables/20240226133702_AddFleetPlatformToHostMDMActions_test.go rename to server/datastore/mysql/migrations/tables/20240301173035_AddFleetPlatformToHostMDMActions_test.go index dc7351ab8d..b177c1ab9c 100644 --- a/server/datastore/mysql/migrations/tables/20240226133702_AddFleetPlatformToHostMDMActions_test.go +++ b/server/datastore/mysql/migrations/tables/20240301173035_AddFleetPlatformToHostMDMActions_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" ) -func TestUp_20240226133702(t *testing.T) { +func TestUp_20240301173035(t *testing.T) { db := applyUpToPrev(t) // create an existing host_mdm_actions row