rename CleanupHostDiskEncryptionKeysTable migration (#10903)
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
+1
-1
@@ -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
Reference in New Issue
Block a user