mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
rename CleanupHostDiskEncryptionKeysTable migration (#10903)
This commit is contained in:
parent
62b3f9e672
commit
cc57016f02
@ -7,10 +7,10 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
MigrationClient.AddMigration(Up_20230330100011, Down_20230330100011)
|
||||
MigrationClient.AddMigration(Up_20230316104937, Down_20230316104937)
|
||||
}
|
||||
|
||||
func Up_20230330100011(tx *sql.Tx) error {
|
||||
func Up_20230316104937(tx *sql.Tx) error {
|
||||
_, err := tx.Exec(`
|
||||
DELETE hdek
|
||||
FROM host_disk_encryption_keys hdek
|
||||
@ -24,6 +24,6 @@ func Up_20230330100011(tx *sql.Tx) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func Down_20230330100011(tx *sql.Tx) error {
|
||||
func Down_20230316104937(tx *sql.Tx) error {
|
||||
return nil
|
||||
}
|
@ -8,7 +8,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestUp_20230330100011(t *testing.T) {
|
||||
func TestUp_20230316104937(t *testing.T) {
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
//
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user