-- +goose Up
-- +goose StatementBegin
-- FM report snapshot captures the helicopter's MCF (kept as "MCF signed" history even
-- after the live fleet page resets its MCF display).
ALTER TABLE fm_report_fleet_history
  ADD COLUMN mcf_id BINARY(16) NULL AFTER easa_signed_by,
  ADD COLUMN mcf_is_signed TINYINT(1) NOT NULL DEFAULT 0 AFTER mcf_id,
  ADD COLUMN mcf_date DATE NULL AFTER mcf_is_signed,
  ADD COLUMN mcf_af_hours VARCHAR(20) NULL AFTER mcf_date,
  ADD COLUMN mcf_landing_count INT NULL AFTER mcf_af_hours,
  ADD COLUMN mcf_signed_by BINARY(16) NULL AFTER mcf_landing_count,
  ADD COLUMN mcf_signed_by_name VARCHAR(255) NULL AFTER mcf_signed_by;
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
ALTER TABLE fm_report_fleet_history
  DROP COLUMN mcf_id,
  DROP COLUMN mcf_is_signed,
  DROP COLUMN mcf_date,
  DROP COLUMN mcf_af_hours,
  DROP COLUMN mcf_landing_count,
  DROP COLUMN mcf_signed_by,
  DROP COLUMN mcf_signed_by_name;
-- +goose StatementEnd
