-- +goose Up
ALTER TABLE icaos
  ADD COLUMN sortkey INT NULL AFTER icao_code,
  ADD COLUMN is_active TINYINT(1) NOT NULL DEFAULT 1 AFTER sortkey,
  ADD KEY idx_icaos_sortkey (sortkey),
  ADD KEY idx_icaos_is_active (is_active);

-- +goose Down
ALTER TABLE icaos
  DROP KEY idx_icaos_sortkey,
  DROP KEY idx_icaos_is_active,
  DROP COLUMN sortkey,
  DROP COLUMN is_active;
