-- +goose Up
ALTER TABLE lands
  ADD COLUMN IF NOT EXISTS is_active TINYINT(1) NOT NULL DEFAULT 1,
  ADD KEY idx_lands_is_active (is_active);

ALTER TABLE opcs
  ADD COLUMN IF NOT EXISTS is_active TINYINT(1) NOT NULL DEFAULT 1,
  ADD KEY idx_opcs_is_active (is_active);

-- +goose Down
ALTER TABLE lands
  DROP KEY idx_lands_is_active,
  DROP COLUMN IF EXISTS is_active;

ALTER TABLE opcs
  DROP KEY idx_opcs_is_active,
  DROP COLUMN IF EXISTS is_active;
