rename CleanupHostDiskEncryptionKeysTable migration (#10903)

This commit is contained in:
Roberto Dip 2023-03-31 12:44:41 -03:00 committed by GitHub
parent 62b3f9e672
commit cc57016f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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
}

View File

@ -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