mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Related to https://github.com/fleetdm/fleet/issues/8961 Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
18 lines
365 B
Go
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
|
|
}
|