Skip to content

Commit f75cd2e

Browse files
authored
Bump migration timestamps after 4.89.2 cherry-picks (#49849)
1 parent 375a03e commit f75cd2e

21 files changed

Lines changed: 44 additions & 44 deletions

server/datastore/mysql/migrations/tables/20260704213830_DropWindowsMDMCommandResultsCommandUUIDForeignKey.go renamed to server/datastore/mysql/migrations/tables/20260723181401_DropWindowsMDMCommandResultsCommandUUIDForeignKey.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
)
88

99
func init() {
10-
MigrationClient.AddMigration(Up_20260704213830, Down_20260704213830)
10+
MigrationClient.AddMigration(Up_20260723181401, Down_20260723181401)
1111
}
1212

13-
func Up_20260704213830(tx *sql.Tx) error {
13+
func Up_20260723181401(tx *sql.Tx) error {
1414
// windows_mdm_command_results is written on every Windows MDM check-in (MDMWindowsSaveResponse). During an active
1515
// profile installation, tens of thousands of hosts insert result rows that all reference the same small set of shared
1616
// command rows in windows_mdm_commands (one command per non-variable profile, fanned out to every host). The
@@ -45,6 +45,6 @@ func Up_20260704213830(tx *sql.Tx) error {
4545
return nil
4646
}
4747

48-
func Down_20260704213830(_ *sql.Tx) error {
48+
func Down_20260723181401(_ *sql.Tx) error {
4949
return nil
5050
}

server/datastore/mysql/migrations/tables/20260706174522_ReparseWindowsHostCertificates.go renamed to server/datastore/mysql/migrations/tables/20260723181402_ReparseWindowsHostCertificates.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import (
99
)
1010

1111
func init() {
12-
MigrationClient.AddMigration(Up_20260706174522, Down_20260706174522)
12+
MigrationClient.AddMigration(Up_20260723181402, Down_20260723181402)
1313
}
1414

15-
// Up_20260706174522 soft-deletes existing osquery-origin Windows host certificate rows so they are re-ingested with
15+
// Up_20260723181402 soft-deletes existing osquery-origin Windows host certificate rows so they are re-ingested with
1616
// their distinguished name (subject/issuer) parsed from osquery's keyed subject2/issuer2 columns.
17-
func Up_20260706174522(tx *sql.Tx) error {
17+
func Up_20260723181402(tx *sql.Tx) error {
1818
step := incrementalMigrationStep(countWindowsHostCertsToReparse, softDeleteWindowsHostCertsForReparse)
1919
if err := step(tx); err != nil {
2020
return fmt.Errorf("soft-deleting windows host certificates for re-parse: %w", err)
@@ -69,6 +69,6 @@ func softDeleteWindowsHostCertsForReparse(tx *sql.Tx, increment incrementCountFn
6969
}
7070
}
7171

72-
func Down_20260706174522(tx *sql.Tx) error {
72+
func Down_20260723181402(tx *sql.Tx) error {
7373
return nil
7474
}

server/datastore/mysql/migrations/tables/20260706174522_ReparseWindowsHostCertificates_test.go renamed to server/datastore/mysql/migrations/tables/20260723181402_ReparseWindowsHostCertificates_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/stretchr/testify/require"
77
)
88

9-
func TestUp_20260706174522(t *testing.T) {
9+
func TestUp_20260723181402(t *testing.T) {
1010
db := applyUpToPrev(t)
1111

1212
insertHost := func(platform, uuid string) uint {

server/datastore/mysql/migrations/tables/20260707071142_AddWindowsMDMConfigProfilesPriorContent.go renamed to server/datastore/mysql/migrations/tables/20260723181403_AddWindowsMDMConfigProfilesPriorContent.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
)
77

88
func init() {
9-
MigrationClient.AddMigration(Up_20260707071142, Down_20260707071142)
9+
MigrationClient.AddMigration(Up_20260723181403, Down_20260723181403)
1010
}
1111

12-
func Up_20260707071142(tx *sql.Tx) error {
12+
func Up_20260723181403(tx *sql.Tx) error {
1313
// The profile-manager cron builds Windows <Delete> commands from the content of a profile version a host still has, but that
1414
// content is gone from the live table once the profile is deleted (it was removed) or edited (it was overwritten).
1515
//
@@ -57,6 +57,6 @@ func Up_20260707071142(tx *sql.Tx) error {
5757
return nil
5858
}
5959

60-
func Down_20260707071142(tx *sql.Tx) error {
60+
func Down_20260723181403(tx *sql.Tx) error {
6161
return nil
6262
}

server/datastore/mysql/migrations/tables/20260707071142_AddWindowsMDMConfigProfilesPriorContent_test.go renamed to server/datastore/mysql/migrations/tables/20260723181403_AddWindowsMDMConfigProfilesPriorContent_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/stretchr/testify/require"
88
)
99

10-
func TestUp_20260707071142(t *testing.T) {
10+
func TestUp_20260723181403(t *testing.T) {
1111
db := applyUpToPrev(t)
1212

1313
// Seed an in-flight deletion in the old pending-delete table; it must carry over to the new table.

server/datastore/mysql/migrations/tables/20260707140752_AddDDMAssetsTable.go renamed to server/datastore/mysql/migrations/tables/20260723181404_AddDDMAssetsTable.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
)
77

88
func init() {
9-
MigrationClient.AddMigration(Up_20260707140752, Down_20260707140752)
9+
MigrationClient.AddMigration(Up_20260723181404, Down_20260723181404)
1010
}
1111

12-
func Up_20260707140752(tx *sql.Tx) error {
12+
func Up_20260723181404(tx *sql.Tx) error {
1313
_, err := tx.Exec(`
1414
CREATE TABLE mdm_apple_declaration_assets (
1515
asset_uuid varchar(37) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
@@ -59,6 +59,6 @@ func Up_20260707140752(tx *sql.Tx) error {
5959
return nil
6060
}
6161

62-
func Down_20260707140752(tx *sql.Tx) error {
62+
func Down_20260723181404(tx *sql.Tx) error {
6363
return nil
6464
}

server/datastore/mysql/migrations/tables/20260707140752_AddDDMAssetsTable_test.go renamed to server/datastore/mysql/migrations/tables/20260723181404_AddDDMAssetsTable_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/stretchr/testify/require"
77
)
88

9-
func TestUp_20260707140752(t *testing.T) {
9+
func TestUp_20260723181404(t *testing.T) {
1010
db := applyUpToPrev(t)
1111

1212
// Apply current migration.

server/datastore/mysql/migrations/tables/20260708153912_FixEmbeddedBundleTitleNames.go renamed to server/datastore/mysql/migrations/tables/20260723181405_FixEmbeddedBundleTitleNames.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import (
77
)
88

99
func init() {
10-
MigrationClient.AddMigration(Up_20260708153912, Down_20260708153912)
10+
MigrationClient.AddMigration(Up_20260723181405, Down_20260723181405)
1111
}
1212

1313
var fixEmbeddedTrailingNonWordChars = regexp.MustCompile(`\W+$`)
1414

15-
func Up_20260708153912(tx *sql.Tx) error {
15+
func Up_20260723181405(tx *sql.Tx) error {
1616
fmaNames, err := fixEmbeddedLoadFMANamesDarwin(tx)
1717
if err != nil {
1818
return fmt.Errorf("loading FMA names: %w", err)
@@ -151,6 +151,6 @@ func fixEmbeddedLongestCommonPrefix(strs []string) string {
151151
}
152152
}
153153

154-
func Down_20260708153912(tx *sql.Tx) error {
154+
func Down_20260723181405(tx *sql.Tx) error {
155155
return nil
156156
}

server/datastore/mysql/migrations/tables/20260708153912_FixEmbeddedBundleTitleNames_test.go renamed to server/datastore/mysql/migrations/tables/20260723181405_FixEmbeddedBundleTitleNames_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/stretchr/testify/require"
77
)
88

9-
func TestUp_20260708153912(t *testing.T) {
9+
func TestUp_20260723181405(t *testing.T) {
1010
db := applyUpToPrev(t)
1111

1212
dataStmts := `

server/datastore/mysql/migrations/tables/20260708185958_CreateApplePSSOTables.go renamed to server/datastore/mysql/migrations/tables/20260723181406_CreateApplePSSOTables.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
)
77

88
func init() {
9-
MigrationClient.AddMigration(Up_20260708185958, Down_20260708185958)
9+
MigrationClient.AddMigration(Up_20260723181406, Down_20260723181406)
1010
}
1111

12-
func Up_20260708185958(tx *sql.Tx) error {
12+
func Up_20260723181406(tx *sql.Tx) error {
1313
if _, err := tx.Exec(`
1414
CREATE TABLE mdm_apple_psso_devices (
1515
host_uuid VARCHAR(255) COLLATE utf8mb4_unicode_ci NOT NULL,
@@ -39,6 +39,6 @@ func Up_20260708185958(tx *sql.Tx) error {
3939
return nil
4040
}
4141

42-
func Down_20260708185958(tx *sql.Tx) error {
42+
func Down_20260723181406(tx *sql.Tx) error {
4343
return nil
4444
}

0 commit comments

Comments
 (0)