fleet/server/datastore/mysql/migrations/tables/20230320133602_AddResetRequestedToHostDiskEncryptionKeys.go
Roberto Dip 61a8a80514
allow to rotate disk encryption key from My Device (#10592)
Related to https://github.com/fleetdm/fleet/issues/8961

Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
2023-03-20 16:14:07 -03:00

18 lines
365 B
Go

package tables
import (
"database/sql"
)
func init() {
MigrationClient.AddMigration(Up_20230320133602, Down_20230320133602)
}
func Up_20230320133602(tx *sql.Tx) error {
_, err := tx.Exec(`ALTER TABLE host_disk_encryption_keys ADD COLUMN reset_requested TINYINT(1) NOT NULL DEFAULT 0`)
return err
}
func Down_20230320133602(tx *sql.Tx) error {
return nil
}