--up

ALTER TABLE samples ADD COLUMN cache_key TEXT;
CREATE INDEX samples_cache_key_idx ON samples (cache_key);

--down

DROP INDEX samples_cache_key_idx;
ALTER TABLE samples DROP COLUMN cache_key;