-- +goose Up
ALTER TABLE medicines
  ADD COLUMN note VARCHAR(255) NULL AFTER name,
  ADD COLUMN sortkey INT NULL AFTER name,
  ADD COLUMN is_active TINYINT(1) NOT NULL DEFAULT 1 AFTER sortkey,
  ADD KEY idx_medicines_sortkey (sortkey),
  ADD KEY idx_medicines_is_active (is_active);

-- +goose Down
ALTER TABLE medicines
  DROP KEY idx_medicines_sortkey,
  DROP KEY idx_medicines_is_active,
  DROP COLUMN sortkey,
  DROP COLUMN note,
  DROP COLUMN is_active;
