-- +goose Up
-- +goose StatementBegin
ALTER TABLE medicine_groups
  DROP INDEX idx_medicine_groups_is_active,
  DROP COLUMN is_active;

ALTER TABLE motor_reactions
  DROP INDEX idx_motor_reactions_is_active,
  DROP COLUMN is_active;
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
ALTER TABLE medicine_groups
  ADD COLUMN is_active TINYINT(1) NOT NULL DEFAULT 1 AFTER name,
  ADD KEY idx_medicine_groups_is_active (is_active);

ALTER TABLE motor_reactions
  ADD COLUMN is_active TINYINT(1) NOT NULL DEFAULT 1 AFTER score,
  ADD KEY idx_motor_reactions_is_active (is_active);
-- +goose StatementEnd
