mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
udpate migration timestamp for add fleet platform to host mdm action migration
This commit is contained in:
parent
4fa50778ac
commit
306133ae3b
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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
|
||||
Loading…
Reference in a new issue