From 306133ae3bd414f7d52766dc24bd09ac10cae73c Mon Sep 17 00:00:00 2001 From: Gabriel Hernandez Date: Fri, 1 Mar 2024 17:34:05 +0000 Subject: [PATCH] udpate migration timestamp for add fleet platform to host mdm action migration --- ...o => 20240301173035_AddFleetPlatformToHostMDMActions.go} | 6 +++--- ...20240301173035_AddFleetPlatformToHostMDMActions_test.go} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename server/datastore/mysql/migrations/tables/{20240226133702_AddFleetPlatformToHostMDMActions.go => 20240301173035_AddFleetPlatformToHostMDMActions.go} (67%) rename server/datastore/mysql/migrations/tables/{20240226133702_AddFleetPlatformToHostMDMActions_test.go => 20240301173035_AddFleetPlatformToHostMDMActions_test.go} (95%) 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